jquery取值

1. 如何用jquery获取<input id="test" name="test" type="text"/>中输入的值?
$("#test").val() $("input[name='test']").val() $("input[type='text']").val() $("input[type='text']").attr("value")
posted @ 2016-09-21 10:38  26个字符的地狱  阅读(129)  评论(0)    收藏  举报