Hi all:
Assume I get a table element with ID="emTab", how do I call JS to click it?
Thanks.
Hi all:
Assume I get a table element with ID="emTab", how do I call JS to click it?
Thanks.
its simple using JQuery $('#emTab').click(functionToCall);
while in JS document.getElementById('emTab').onclick = function() {};
for details on DOM events: http://www.howtocreate.co.uk/tutorials/javascript/domevents
Firing events cross-browser - http://jehiah.cz/archive/firing-javascript-events-properly