is this possible?
<div id="anything">I will change</div>
<div id="id" jq="$('#anything').css({background: 'red'})"></div>
var x = '$('#id').attr('jq')';
jQuery.call(x);
Basically i would like use an attribute jq
on any tag to act like a onclick
would on html that calls the javascript statements.
btw jQuery.call() is for demonstration purposes it doesn't work...