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

来源:互联网 发布:张小龙 知乎 编辑:程序博客网 时间:2024/05/16 11:56

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

转载 2016年07月18日 20:05:43
如何用jquery获取<input id="test" name="test" type="text"/>中输入的值?
$(" #test ").val()$(" input[ name='test' ] ").val()$(" input[ type='text' ] ").val()$(" input[ type='text' ]").attr("value")
原创粉丝点击