Submit Form after Validation jQuery example
Submit Form after validation jquery:
[html]function validations(){
if(($("#mobNum").val().length)==10){
$("#rcForm").submit();
}else{
//your content
}
}
[/html]
In the above example mobNum (#mobNum) is the id of the text box and rcForm(#rcForm) is the id of the Form. So here we are just checking whether the length of the text box is ten.
We must put onclick=”validations()” in the button.
Recommended Books:
Xwinner, huh? Gave it a shot. Nothing groundbreaking, but it’s solid. Worth a look if you’re bored. Give it a try and see if you can become a true xwinner
Hey, 888newbet’s got some interesting stuff. Pretty standard fare, but the bonuses are decent. Might be worth a look if you’re hunting for those sweet deals at 888newbet
Ok9o! Heard a few things, decided to check it out. Not too shabby. Nice user interface. Give it a shot at ok9o