Hi to All,
I want to Compare the Two Textbox ClientId not a Value of them, whether clientid is equal i perform something oterwise not.
because the i bind the textbox into gridview, so the value of the textbox is entirely different to previous value.
but the if statement match all loop increment.
How can i do this?
Please Help me.
Thanks a lot.
I want to Compare the Two Textbox ClientId not a Value of them, whether clientid is equal i perform something oterwise not.
Code:
for (var i = 2; i <= document.getElementById('ctl00_cphMaster_grdPaymentAmount').rows.length - 1; i++) {
if(document.getElementById('ctl00_chMaster_ctl04_txtPayAmount') == document.getElementById('ctl00_chMaster_ctl0' + i +'_txtPayAmount'))
alert("Some");
}
but the if statement match all loop increment.
How can i do this?
Please Help me.
Thanks a lot.
Comment