Okay, I have some code like this:
<?php
for($i = 0; $i < 20; $i++) {
$idx = $i;
?>
<input class="edit-btn" type="button" name="edit" value="" onClick="editMe(this)"/>
<?php } ?>
My problem is: in function editMe() (in javascript) how can I determine which button was clicked (according to $idx value)? Actually I don't like to set $idx as id of buttons and also I don't like to use $idx as their values.
Update: i -> $i, I want to emphasize that each button should associate to an unique index