1000hz / bootstrap-validator

A user-friendly HTML5 form validation jQuery plugin for Bootstrap 3
http://1000hz.github.io/bootstrap-validator
MIT License
2.38k stars 1.07k forks source link

$block.data is not a function #604

Open pschmerling opened 6 years ago

pschmerling commented 6 years ago

In line 258 at clearErrors It throws this error on two radio-buttons which trigger to show/hide elements in the form. I debugged validator.js several hours but did not see any chance to avoid this error. Finally I changed the line to if ($block.html && $block.data) $block.html($block.data('bs.validator.originalContent'))