Hi,
I try to create a search form and some js script (x.js created in js folder) with the apply button. So my question is how to trigger the form validation such like notempty or notlessthan. Here by I attach my screen shot.
1. I disable the form submition using the code:
form.result = false;
2. after that I apply the the apply button click event:
$("button[name='apply']").click(function () {
if (Validation Passsed){
proceed with my code rendering the result
}
else
{
don't proceed
}
})
I try to create a search form and some js script (x.js created in js folder) with the apply button. So my question is how to trigger the form validation such like notempty or notlessthan. Here by I attach my screen shot.
1. I disable the form submition using the code:
form.result = false;
2. after that I apply the the apply button click event:
$("button[name='apply']").click(function () {
if (Validation Passsed){
proceed with my code rendering the result
}
else
{
don't proceed
}
})