how to invalidate form parsley when input wrong code example Example: reset parsley validation $('#myForm').parsley().reset();