I want to bind an onclick event to an element I insert dynamically
with jQuery
But It never runs the
binded function. I'd be happy if you can point out why this example is not working and
how I can get it to run properly:
data-lang="js" data-hide="false" data-console="true"
data-babel="false">
class="snippet-code-html lang-html prettyprint-override">
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
xmlns="http://www.w3.org/1999/xhtml" xml:lang="da" lang="da">binding
src="https://code.jquery.com/jquery-1.12.4.min.js">
Test of click binding
problem: to bind a click event to an element I append via
JQuery.
class="add_to_this">
The link is created, then added
here below:
class="add_to_this">
Another is added here
below:
No comments:
Post a Comment