Removing error message from verify.jsp when user tries to enter new ones

This commit is contained in:
Katerina Iatropoulou 2017-10-17 10:07:49 +00:00
parent 9c446fadb2
commit 13a2d72bad
1 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,7 @@
<div class="alert alert-danger" aria-hidden="true" style="display: none;"></div>
<div class="form-group">
<span id="server_error" class="uk-text-danger uk-text-small uk-float-left">${message}</span>
<c:remove var="message" scope="session" />
<span class="msg_username_error uk-text-danger uk-text-small uk-float-left" style="display:none">Please enter your username.</span>
<input id="username" name="username" type="text" placeholder="Username" class="form-control"></div>
<div class="form-group">
@ -71,11 +72,13 @@
$("#username").focusin(function() {
$(this).removeClass('aai-form-danger');
$(".msg_username_error").fadeOut();
$("#server_error").fadeOut();
});
$("#verification_code").focusin(function() {
$(this).removeClass('aai-form-danger');
$(".msg_verification_code_error").fadeOut();
$("#server_error").fadeOut();
});
</script>
</div>