<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。