In my project I'm using these following plugins for validation
jquery.validate.min.js,
jquery.ui.core.js,
jquery.ui.widget.js,
jquery.ui.mask.js
I'm calling it like this:
$('#txtShippingInfoPhone').mask({mask:"999-999-9999",clearEmpty: false});
By default input box is empty. like this
Phone number:
when i keyup on that textbox its look like this
Phone number:___ ___ ____
And, If I enter wrong phone number then it is accepting. e.g:
[407-555-____]
But here, error should through instead of accept the value. Observation: Its consider __ __ ____ also value.