I have a form that submits with empty required fields.
I’m using Twitter BootStrap with it.
I posted this example in jsFiddle
.
Maybe is just an tag issue from BootStrap, but i’m really not seeing what is wrong.
I have a form that submits with empty required fields.
I’m using Twitter BootStrap with it.
I posted this example in jsFiddle
.
Maybe is just an tag issue from BootStrap, but i’m really not seeing what is wrong.
2
Answers
Thanks for the answers.
Since I have a
button
(div
, actually) outside the form that will trigger the submit, I found my way by (quick fix) triggering a click on a hidden submit button.The HTML:
The JavaScript:
So, this quick fix will work, for now. Here is the jsFiddle updated.
3 things:
required
..ready()
.<button>
element inside the<form>
and make ittype="submit"
.Updated Code:
Updated jsFiddle