You can differentiate the each edit button by using unique id
<button class='edit' data-id="<?php echo $_GET["id"];?>"> EDIT</button>.
While click on the edit button, read the data-id by using following code
$(document).on('click', '.edit', function(){
var id = $(this).attr('data-id');
//code - you need to do
})