I'm confused with the Bootstrap 3 implementation of form validation. I'm new to Bootstrap, and I cannot seem to get the form validation working with a form that does not include a submit button.
The type of form validation I'm looking for can be seen with this code:
http://jsfiddle.net/hTPY7/1107/
<form>
<div class=form-group>
<label class=control-label for=username>Email:</label>
<div class=input-group>
<input class=form-control placeholder=Email name=email type=email required />
</div>
</div>
<div class=form-group>
<label class=control-label for=password>Password:</label>
<div class=input-group>
<input class=form-control type=password placeholder=Password name=lastname type=text required />
</div>
</div>
<button type=submit class=btn btn-primary>Submit</button>
</form>
I know I can submit the form with some JQuery like the code below, but how can I use the Bootstrap 3 validation?
$( #createUserSubmit ).click(function() {
$( #newUserForm ).submit();
});
I've been reading Stackoverflow for years, but this is my first post. I have looked around for answers, but all I can find are solutions which use other validation libraries. I would like to use Bootstrap's own built in functions.
Thanks!