In jQuery, is it possible for an element to act as if it is automatically hovering when the page loads, if it is not really hovering? I mean, I wonβt put a pointer on the element that I want it to do what it would do if I put it.
Use .trigger () to fire the event.
$('#foo').trigger('mouseover');
You can directly call the handler
$('abc').mouseover();
document.ready , , , .
document.ready
Call event hint before document.ready