I need to show the error message based on input error. what I'm doing wrong?
also the error should be displayed when the h5validation adds the class .ui-state-error
if ($(".ui-state-error").is(":visible") == true) { find errors and display input:email
<section class="errors">
<p class="email"><span>Please enter a valid Email.</span></p>
<p class="password"><span>Please re-type your password.</span> Your passwords didn't match.</p>
<p class="repeat-password"><span>Please re-type your password.</span> Your passwords didn't match.</p>
</section>