Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i have a main-row with content various drop down list and text box and buttons and i cloned this Row as $NewRow

how i read $NewRow text-box value

suppose i need to read Total field value of 3rd cloned row

need help for this

What I have tried:

$('#Total'.$newRow).addid('Total1').val().removeAttr('id', 'Total').addid('Total1');
              $newRow.find('#Srno').attr('id', nsr);
              if (nsr !== "") {

                  alert($($newRow.select("#Total1 option: selected".text())))
                  alert($("#nsr").text());
              }
Posted
Comments
Afzaal Ahmad Zeeshan 16-Feb-19 5:24am    
And the problem with this is?
yogesh vaidya 16-Feb-19 7:11am    
thanking you sir that you listen my problem

main problem is suppose i enter i data in first main row
srno ,product_name , quantity ,rate

and get total and net-total successfully and clone it in a new div new row
after entering some row or its seem that user mistaken to enter qty and he need to edit
second clone row
at that time first i need to get total value secretly which i need to less from Net-total
and give to facilitate a curse in clone row qty field
thus after when user enter qty the other function is easy to get total and net-total

but a lot of try i cant get success to read this total field value




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