Are innerHTML elements visible to jQuery functions?

when ("#edit").click( is called, the element “#edit” doesn’t exist so the .click( cannot be attached

solution 1

you call click( juste after .innerHTML = response

solution 2

use delegated event like that :
$("body").on("click", "#edit", function () {...