2

在 Bootstrap 3 中,我有一个#content-page包含第一个#button_1. #button_1单击时,Ajax 会在同一个 DIV 上加载一个表单,#FORM其中包含一些必需的输入和一个提交按钮。

$('#FORM').validator().on('submit', function(event) { //do somethings.. });

为什么validator()不起作用?

$('#FORM').on('submit', function(event) { //do somethings.. }); ..instead 'this works fine..

如何验证此表单(使用插件验证器)?

PS:插件验证器:http: //1000hz.github.io/bootstrap-validator/

4

0 回答 0