本文介绍了如何在Asp.Net Gridview中获取具有价值的Texbox总数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨!!!
需要一些帮助!!
我使用这个获得gridview中的文本框总数(itemtemplate)代码
Hi!!!
need some help!!
I get total number of textboxes (itemtemplate) in a gridview using this code
$("#grdTemas tr").each(function () {
var txtNum = $(this).find("input[id*='txtValoracionTema']");
var cntText = $("#grdTemas input:text").length;
txtNum.click(function () {
alert(cntText);
});
但是我只需要得到有价值的texbox的总数(忽略空的文本框)
帮助!!!
谢谢!
but i need get total count only of texboxes having a value(ignoring empty textboxes)
help!!!
thanks!
解决方案
但是我只需要得到有价值的texbox的总数(忽略空的文本框)
帮助!!!
谢谢!
but i need get total count only of texboxes having a value(ignoring empty textboxes)
help!!!
thanks!
这篇关于如何在Asp.Net Gridview中获取具有价值的Texbox总数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!