I'm using Parsley to validate my inputs (not the form) and almost everything works great!
The only problem I have is that if I leave zipcode and phone fields empty, the error message appear but when I focusin and start typing, it doesn't leave like the other fields. I've tried many different regexp thinking that might be the problem but no luck so far.
///////UPDATE///////
I realized that the element that's stopping parsley from validating is a mask library used on those 2 inputs
Anyone managed to make Parsley validate even with a mask library?
jQuery(function ($) {
$(".required_input").parsley();
});
<!--Zip Code-->
<asp:TextBox ID="txtZip" runat="server" MaxLength="7" required="" data-parsley-trigger="focusout" data-parsley-validate="" data-parsley-error-message="*" data-parsley-pattern="^[ABCEGHJKLMNPRSTVXY][0-9][ABCEGHJKLMNPRSTVWXYZ] [0-9][ABCEGHJKLMNPRSTVWXYZ][0-9]" CssClass="UpperCase maskZip required_input"></asp:TextBox>
<!--Phone-->
<asp:TextBox ID="txtPhone" runat="server" data-parsley-trigger="focusout" required="" data-parsley-error-message="*" data-parsley-validate="" data-parsley-pattern="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" CssClass="input103size maskPhone required_input"></asp:TextBox>