One - One Code All

Blog Content

jquery获取input输入框中的值?

前端相关 WEB   2016-01-15 21:01:27

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

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


变量赋值并取值:

var currentTime = $("#"+timeId+"").val();



上一篇:将后端返回的文件流转为图片路径直接展示图片
下一篇:href超链接a标签点击触发函数发送请求

The minute you think of giving up, think of the reason why you held on so long.