jQuery如何取得HiddenField值(转)

<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);

这样搞定了!!!

 

posted on 2014-11-20 08:51  xihong  阅读(944)  评论(0编辑  收藏  举报

导航