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

如何用jquery获取<input id="test" name="test" type="text"/>中输入的值?
$(" #test ").val()
$(" input[ name='test' ] ").val()
$(" input[ type='text' ] ").val()
$(" input[ type='text' ]").attr("value")
posted @ 2017-11-12 11:41  RoyFans  阅读(278998)  评论(0编辑  收藏  举报