Berdiya Onur Berdiya Onur - 1 year ago 74
Javascript Question

How to trigger mouseover function on an element when not really mouseovered

In jQuery, is it possible for an element to act like it is mouseovered automatically when the page is loading, when it is not really mouseovered? I mean, I won't put my pointer on the desired element for it to do what it would do if I put.

Answer Source

Use .trigger() to trigger an event.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download