<span id="Grid1_ct1"> <input name="Grid1_ct1$txtTitle" type="text" value="1111" id="Grid1_ct1_txtTitle" /> </span>
我想得到value的值,需要怎么写这个正则表达式?各位大侠帮帮忙.
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
正则表达式?js代码吧
document.getElementById("Grid1_ct1_txtTitle").value
要是想在后台获取:<input runat="server" name="Grid1_ct1$txtTitle" type="text" value="1111" id="Grid1_ct1_txtTitle" />
后台就跟调用服务器控件一样,只不过属性是value。