SyntaxFix
Write A Post
Hire A Developer
Questions
In your doSomething() function, pass in the event e and use e.preventDefault().
doSomething()
e
e.preventDefault()
doSomething = function (e) { alert('it works!'); e.preventDefault(); }