Skip to content Skip to sidebar Skip to footer

Why "formvalidation Plugin" Throws Me A Bug In Remote Validation?

Why 'formvalidation plugin' throws me a bug in remote validation? Use formvalidation 0.8.1, bootstrap 3 and laravel 5.3. When I make use of 'remote' validation it sends me the foll

Solution 1:

Uncaught TypeError: b.success is not a function

I debug the js code and find b object is jqXHR. Since JQuery 3.0, there is no success function.

The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks are removed as of jQuery 3.0. You can use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead. from jquery.ajax

There are two solutions:

  1. use older version jQuery ( < 3.0)
  2. modify formvalidation code, replace success with done, error with fail

Post a Comment for "Why "formvalidation Plugin" Throws Me A Bug In Remote Validation?"