Search code examples
twitter-bootstrapvalidationbootstrapvalidator

BootstrapValidator, validate fields added dynamically to the form


I'm searching for a way to validate fields that I add to a form after the DOM is loaded and $('#formId').bootstrapValidator() is executed. Is there a way to add a new field and validate it when the form is submited?


Solution

  • Is there a reason you couldn't use hidden fields when the form first loads and then validate them along with the other fields when the form is submitted?