Adding Validation To a Form submitted through ajax

The form is submitted through ajax. function post(url,formId) {, jQuery('#' + formId).serialize(), function(d) { jQuery("#response").load("", function() { Cufon.refresh(); }); }); } I have this form
Recipient Details
Now I wanted to add validation on the form so that, before the form is submitted it should be validated first. If there is error on the form, an error text will be displayed below the field that is error and the form is not submitted. Im a newbie in jquery.. How to accomplish this?
jQuery validate:

以上就是Adding Validation To a Form submitted through ajax的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准