Onclick on each row in the table field is only working in second page in pagination

Onclick on each row in the table field is only working in second page in pagination

aneesmaaneesma Posts: 2Questions: 2Answers: 0

Hii..all

I added a button in the end of each row, when that button is clicked, the id of the clicked button is passed to jquery for further data processing with Ajax. I am facing a problem that only first page of the pagination is works fine, others are not working.

Please note that i created id for <button> using php..

<td><button class="renew" id="<?php echo 'r'.$i; ?>">Renew</button></td>

where $i increments for each row. Then using this count ($i), i extracts value of each field in that row using jquery. But i am unable to perform this from second page of the pagination on wards. Please help..Regards.

Answers

This discussion has been closed.