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 () {...

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)