I have a jquery plugin X and inside the plugin I have a function test();
My problem is how to call the function test in plugin X from my document..
$("#abc").html('<a href="jQuery.X.test()">test</a>');
But it doesn’t work. Is there a simple solution?
Thank you for your time.
You shouldn’t set
hrefto JavaScript (you could if you prefix it withjavascript:but don’t.) You can do something like this instead:What it does:
#abcelement