using $.fn.attr(‘data-*’) instead of $.fn.data(‘*’) to read data-attributes on elements.
using $.fn.attr(‘data-*’) instead of $.fn.data(‘*’)
to read data-attributes on elements.

this was causing stale values to be read because jQuery wasn’t updating
the internal data object when the data-attribute was changed.
1000hz/bootstrap-validator,1000hz/bootstrap-validator