Click here to Skip to main content
15,867,986 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In a Gridview I have columns like ProductID, ProductName, Select, Quantity. ProductID and ProductName are asp.net labels, Select is a asp.net checkbox and Quantity is a asp.net tectbox. How to write a jQuery Code when I check the checkbox '1' should come in a that perticular row textbox in a gridview. ..??
Posted

1 solution

C#
function validate() {
   
    var i = 1;
    

<pre lang="cs">$nc("#grdsample tr").each(function () {
       if (i != 1) {
           var id = $nc(this).find("input[type='hidden']:first").val();
           var name = $nc.trim($nc(this).find("input.txtname:first").val());
           var dropdownitem = $nc(this).find('.ddltest1:first').val();
           
}
)};

i++
}


this is not exact code ..please refer this and make it in your way...above code is used to validate each row of the grid view in add new row click...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900