I have a jquery that makes a code when you click on I do not understand the new < Why code> a.data does not work? This new It acts on the related Your binding method is only linked to existing elements, after that To be bound on the elements, you need to bind to the original element. a.data The problem is that when I make many
a.data with another function, this does not work
a.data code> divdata
var data_html = '& lt; A class = "data" href = "#" value = "'data.id'" & gt; ' + Ref.info + '& lt; / A & gt; '; $ (Data_html) .prependTo ($ ('# divdata'));
a.data
$ ('a.data'). Click (function () ($ (this) .attr ('href'); var idvalue = $ (this) .attr ('value'); idvalue * = 1; // Aqui resio to ACACIN console.log (idvalue };}};
$ ("# divdata"). ("Click", "a.data", function ( ) {// event content here});
No comments:
Post a Comment