asp.net - Jquery Assign label text which is in gridivew -



asp.net - Jquery Assign label text which is in gridivew -

how label within gridview , assign text label using jquery. in general utilize next assigning text in jquery

("[id$='label1']").val('value') or $('#<%=label1.clientid%>').val('value')

but command within gridview how can assign text

this listview

<tr> <td style="width: 50px; text-align: center;" rowspan="2"> <asp:label id="lblid" runat="server" text=""></asp:label> </td> <td style="width: 50px; text-align: center;" rowspan="2"> <asp:label id="lblfirstname1" runat="server" text='<%# bind("firstname") %>'></asp:label> </td> </tr>

and in script file write per below

$("[id$='lblid']").text('value'); didn't worked

$('<%="#"+gridviewdata.clientid %>').find('span[id*="label1"]').text("yourdata");

& @bipen said can utilize 3 of functions text(), html(), or val().

jquery asp.net gridview

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -