How to get the value of textbox inside the grid using J query





J query Sample-1 To get the value of textbox inside the Grid



Here, we can see how to retrieve the value of text box inside the grid using a jquery”:


Code Snippet


 function RetrieveTextValue() {
        var returnValue = null;
        var rbs = $('[id*=GridRot]').find('input');
        for (var i = 0; i < rbs.length; i++)
         {
             if (rbs[i].checked) {
                 var lblempname = $("#Rotation_GridRot_lblsearchEmployeeName_" + i).text();
                 returnValue = lblempname
             }
         }
         return returnValue;
    } 

HappyCoding ! 😉

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: