Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

How to trigger form validation without submitting the form

$
0
0
Hi,

I have searched for tow days this forum but cannot find a way to solved my problem so here it is.

I want to submit a form through ajax without refreshing the page and I want to trigger validation before that.

I searched and apparently validation is fired up only on form submission.
I do not want to submit the form because this will cause the page to reload and I do not want that.
What I want is to fire up form validation when I click the ajax button and then only if the validation passes to submit the form again through ajax so the record is saved.

I hope I explained clearly, if not I will try to explain again.

Thanks,
Doru.

Viewing all articles
Browse latest Browse all 18717

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>