如何用jq获取一个div内部所有input[type='text']的值

<divid="Div1"><inputid="13"readonly="readonly"type="text"value="13"><inputid="13"type... <div id="Div1">
<input id="13" readonly="readonly" type="text" value="13"><input id="13" type="button" value="删除" mes="13" onclick="del(this)">
<input id="12" readonly="readonly" type="text" value="12"><input id="12" type="button" value="删除" mes="12" onclick="del(this)">
<input id="11" readonly="readonly" type="text" value="11"><input id="11" type="button" value="删除" mes="11" onclick="del(this)">
<input id="10" readonly="readonly" type="text" value="10"><input id="10" type="button" value="删除" mes="10" onclick="del(this)">
<input id="5" readonly="readonly" type="text" value="5"><input id="5" type="button" value="删除" mes="5" onclick="del(this)">
<input id="4" readonly="readonly" type="text" value="4"><input id="4" type="button" value="删除" mes="4" onclick="del(this)">
<input id="3" readonly="readonly" type="text" value="3"><input id="3" type="button" value="删除" mes="3" onclick="del(this)">
<input id="2" readonly="readonly" type="text" value="2"><input id="2" type="button" value="删除" mes="2" onclick="del(this)">
<input id="1" readonly="readonly" type="text" value="1"><input id="1" type="button" value="删除" mes="1" onclick="del(this)">
</div>
展开
 我来答
569305586a
2015-03-20 · 超过42用户采纳过TA的回答
知道小有建树答主
回答量:89
采纳率:100%
帮助的人:27.2万
展开全部
$(function(){

var $arr= $("#Div1 :input[type='text']");

$arr.each(function(i,ele){
var $ele=$(ele);
alert($(ele).val())
});

});
//楼主又有不明白的地方可以联系我哦 569305586@qq.com
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
百度网友84cdb66
2015-03-20 · TA获得超过453个赞
知道小有建树答主
回答量:481
采纳率:100%
帮助的人:283万
展开全部
$(document).ready(function(e) {
$("#Div1 input[type=text]").each(function() {
var v = $(this).val();
});
});
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式