jQuery如何取得HiddenField值(转)
时间:2014-11-20 09:01:35
收藏:0
阅读:568
<f:HiddenField runat="server" ID="cat_id" Text="ssss"/>
var strDate = $("#<%=this.cat_id.ClientID %>").val();
alert(strDate);
这样不行。
var strDate = $(‘input[name="<%=this.cat_id.ClientID %>"]‘).val();
alert(strDate);
这样搞定了!!!
原文:http://www.cnblogs.com/xihong2014/p/4109719.html
评论(0)