I am using ajax to load html code snippet containing links (id = "edit") into a main class = "container". The problem is that I can't fire the loaded link event, here's the example:
code : html + html loaded :
- <main class="container">
- <div class="profile row">
- ...
- <table>
- ...
- <a id="edit">...</a>
code : jquery :
- $ (document) .ready (function () {
$ ("# edit"). click (function () {
alerta ("Johnny");
});
});