Skip to content
Advertisement

add event listener with jquery to generated dynamycally href

I have many href generated dynamically with php, and i need event listener click.

it´s no very much problem, but when i´m traying to do click in one, always returned me, same data.

i have this:

JavaScript

my html is:

JavaScript

update

enter image description here

but i need if i want to do click in href witch id 12 go to id 12, now always go to id 11. I think that i can to do a each but i don´t know how i can do it.

I need this, for to do, a loader gif while web do operations

Thanks for help

Advertisement

Answer

With method unbind() i get that i can only can select one href that i would like it

Solution:

JavaScript
Advertisement