How can i find Textbox inside nested gridview using javascript?
i want to validate Textbox inside nested gridview using javascript.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
samantaPosted Nov 21, 2014, 7:58 AM
but textbox inside nested gridview.
how can i get nested grid id?
Shweta LodhaPosted Nov 21, 2014, 7:36 AM
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;
}
});}