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

2018/01/23 18:07
阅读数 2.1K

如何用jquery获取<input id="test" name="test" type="text"/>中输入的值?

$(" #test ").val()
$(" input[ name='test' ] ").val()
$(" input[ type='text' ] ").val()
$(" input[ type='text' ]").attr("value")

更多操作:http://blog.sina.com.cn/s/blog_70491fc60100t5kw.html

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部