Executing javascript code stored in an element attribute using jQuery
- by Moak
say there is an element #button with the attribute onmousedown containing some random javascript how could I trigger the js in that element attribute using jQuery?
j("#otherbutton").click(function(){
var script = j("#button").attr("onmousedown"); //what now?
});