如何用jquery获取input输入框中的值?

时间:2017-11-12 12:02:17   收藏:0   阅读:241
如何用jquery获取<input id="test" name="test" type="text"/>中输入的值?
$(" #test ").val()
$(" input[ name=‘test‘ ] ").val()
$(" input[ type=‘text‘ ] ").val()
$(" input[ type=‘text‘ ]").attr("value")

原文:http://www.cnblogs.com/royfans/p/7821276.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!