I’m having an issue with removing classes from a HTML input when that element becomes empty.
Please see: http://jsfiddle.net/GgFXs/4/
This happens for a split second, or if you hold the backspace button in the field.
Any time after, the field takes on the ‘valid’ class – why? and how to fix?
You’re mixing up functionality from the Validation plugin with your own code. You can remove the
validclassName, but the Validation plugin will add it back if it thinks the field is valid.If you want a blank field to be rejected by the Validation plugin, you’ll have to give it
class="required". If you want to be monitoring, adding and removing classes manually, you’re not really using the Validation plugin as intended IMO.