How can i find Textbox inside nested gridview using javascript?
i want to validate Textbox inside nested gridview using javascript.
Find Textbox inside nested gridview using javascript
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Shweta LodhaRank #31 · 39.8K reputationPosted Nov 21, 2014, 2:36 AM EST
you can do something similar to this:
function GetTextBox() {
$("#MyGrid").each(function ()
{
var textBox = $(this).find("input[type='text']");
if (textBox.val().length === 0)
{
alert("some message");
return false;
}
else
{
return true;
}
});}
samantaRank #3,157 · 454 reputationPosted Nov 21, 2014, 2:58 AM EST
but textbox inside nested gridview.
how can i get nested grid id?