2

In Bootstrap 3, I've a main DIV #content-page that contains a first #button_1. On #button_1 click, Ajax loads a form on the same DIV, #FORM, that contains some required inputs and a submit button.

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

Why validator() doesn't work?

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

How do I validate this form (with plugin validator)?

PS: plugin validator: http://1000hz.github.io/bootstrap-validator/

Sumurai8
  • 20,333
  • 11
  • 66
  • 100
perseoclub
  • 29
  • 6
  • I fixed writing ..but I'd like to understand how do it on ajax success. – perseoclub Oct 08 '16 at 01:48

0 Answers0