Skip to content Skip to sidebar Skip to footer

Submit Event Preventdefault() Not Working On Ipad/iphone With Os9

I have a straightforward form to collect a person's details. It sends the data to firebase and I e.preventDefault()to stop it from submitting normally. This is the handler; let frm

Solution 1:

It doesn't work in older osx browsers.

You're using let, which was introduced in ES2015 (aka "ES6"). It's a syntax error in older browsers. Switch it to var (in that code, it doesn't make a significant difference) if you're not dealing with up-to-date browsers.


I realized there might be a dupetarget for this, and there is, but the answers are out of date. I've added one that's more current.

Post a Comment for "Submit Event Preventdefault() Not Working On Ipad/iphone With Os9"