4 posts tagged with "jquery"
Fixing Foundation 5’s Unrecognized Expression Syntax Error
I was working on a new marketplace theme in Magento, and I kept getting a peculiar javascript error message. The exact error message that you might receive could vary – but the one I got was: Uncaught Error: Syntax error, unrecognized expression: [data-‘Times New Roman…
How to check if a jquery plugin is installed or available
Most Jquery plugins act a lot like functions. They are attached to the main Jquery object, so essentially all we have to do is check that the function exists and is defined.
Using Jquery to disable the enter key
There are times that you do not want a form to automatically submit when a user hits the enter key. Or if you want to do some validation via javascript before you allow the submit to go through. By returning false in the keypress function it tells the browser not to…
Adding a delay to JQuery Functions
Recently I was working on a few functions that I didn’t want to have activated immediately after hovered over a div. I neededthe functions to activate after a half a second of hovering by the user. To do this I created this this piece of code. Let’s go through line by…