I\'m just wondering how I can use JavaScript to simulate a click on an element.
Currently I have:
You could save yourself a bunch of space by using jQuery. You only need to use:
$('#myElement').trigger("click")