开发者

Problem with jQuery Validation Plugin submission?

开发者 https://www.devze.com 2022-12-18 17:55 出处:网络
I am using \"Inline Form Validation Engine 1.6.2, jQuery plugin\" to validate form. But i want that on click of a link i.e..

I am using "Inline Form Validation Engine 1.6.2, jQuery plugin" to validate form. But i want that on click of a link i.e..

<a href="#">Click here to submit</a>

it should validate. as my form do not have 开发者_Go百科submit button.. Please help..


try:

$('a#submit').click(function(){
   $('#form-id').submit();
})


<a href="#" id="submit">Click here to submit</a>

I won't suggest to have your form without any submit button... because you are screwed when javascript is disabled in a browser.

0

精彩评论

暂无评论...
验证码 换一张
取 消