Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript javascript help Re: javascript help

#106217
TheDoc
Member

Should work fine. Here’s a quick demo: http://codepen.io/ggilmore/pen/BGxKm

Just have to make sure to put function(e) before using e.preventDefault().

Also, not sure if this was the problem, but you misspelled ‘prevent’ in your post.