getElemtsId value

getElemtsId value

AKraisserAKraisser Posts: 6Questions: 0Answers: 0
edited January 2011 in General
I use the following code do get the elemtents ID of the button in the Table.

[code]
$('..update-link').click(function() {
var ID = $(this).attr('id');
$.getJSON("../serverscripts/avz-update-anfordern.php?avzID="+ID,
[/code]

The problem is if i switch with the pagination or I change the Length and klick the Updatebutton in the Table i didnt get the ID. I only get the ID of the first Page from the Table list.

This ist my code to generate the Tabel:

[code]

<?php do { ?>



Update


<?php } while ($row_avzAnzeigen = mysql_fetch_assoc($avzAnzeigen)); ?>

[/code]

How do i get the ID from the button if i switch with the pagination??

Thanks.
This discussion has been closed.