How do I make a web browser fire a click to an #id element on the page?
Using the .click in javascript, doesn’t work, as although .click is being called within a function, that function however is not executed upon a click (otherwise it would work).
Please help.
$('#gocircus').live('click', function() {
document.getElementById('something').click();
});

assuming you are assigning function to that element onclick previously
Your code doesn’t work as
click()is jQuery extension of click event, you can’t use it on nativeDOMElement, instead do:As per my comment,
liveis deprecated as of 1.7, useon():EDIT
As per your case, I think you need to bind click event to
GO!instead: