getElemtsId value
getElemtsId value
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.
[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.