An experienced Senior Front End Web Developer

jQuery silent failure

Have you attempted to apply an event handler in jQuery but it just isn’t firing? For example, the following:

This will fail silently, the cause being the final semi-colon.

In this particular case you’re adding an anonymous function to the hover handler as a parameter, so you don’t specify a terminating semi-colon. But, for perfect form, you could move it to after the statement, as follows:

If you liked this post…
The best way to thank me would be by saving yourself money and moving your web hosting to Orland Media!

Comment on this:

*