Home › Forums › JavaScript › javascript help › Re: javascript help
July 16, 2012 at 8:42 pm
#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.