Clearing <input> without triggering HTML5 Validation
Hi!
I'm still getting the hang of HTML5 Validation. I'm loving it overall, but I've run into something I can't find the solution to.
I'm trying to clear an <input> element with the required attribute without the browser triggering validation.
Up until now, I would just use
- $("#myInput").val("");
But that leaves the field "invalid" with a red border around it in Firefox. So now I'm wondering what the correct way to clear the element is without triggering validation.
Has anyone had any experience with this?
Thanks!
-Eric