随笔:如何获取GridView中的TextBox中的值

function CheckWamt() {
var smat = "";
$('#<%=Txn_gv.ClientID %>').find('input[type=checkbox]').each(function (i) {
if ($(this).attr('checked') == 'checked') {
smat = $('#MainContent_Txn_gv_txtSAmt_' + i).val();
}
});

  alert(smat);//

}

原文地址:https://www.cnblogs.com/zhuanglijie/p/5367718.html