var row = $(this).closest('tr'); var ID = row.find("td:first").text(); $("#<%=TextBox12.ClientID%>").val(ID);
I have used this for displaying the gridview value in the textbox but this is not working for the dropdownlist.
var row = $(this).closest('tr'); var type = row.find("[id*=DropDownList2] option:selected").text(); // for selected item text. $("#<%=DropDownList2.ClientID%>").val(type);
is this works?
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.