Click() works in IE but not Firefox
- by Tom Andrews
I have code which is trivial but only works in IE not Firefox.
$(document).ready(function(){
$('li#first').click();
});
I have also tried:
document.getElementById('first').click();
But that doesn't work either.
Is this an IE bug/feature or is click() not supported in the other browsers?
Thanks in advance.