Click here to Skip to main content
15,891,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
here im reading values from table rows of certain class using this its work fine but i need to insert values to the input of the same row like this please help me to correct


JavaScript
$("#sub").click(function (){
    var qnty=0,rateperkg=0,grossval=0;
      $("#item tr.item-row").each(function() {
qnty=$(this).find(".qnty").val();
         rateperkg=$(this).find(".rateperkg").val();
           
grossval=qnty*rateperkg;

            alert(grossval);


$(this).val(".grossval")=grossval;
            });
    
});
Posted

1 solution

$(this).find(".grossval").val(grossval);
 
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