<li><label>Email:</label> <input type='text' name='username'
id="forgot_username" /></li>
<li><label> </label> <input type="submit"
id="forgot_btn" value="Send Reminder" class="btn"></li>
I have above text box and button in my jsp. and the below condition, what i want is when this condition occur , above text box and button should hide how can i do it.
<c:if test="${param.message == 3}">
<span class="error"><font color="red"> Email does not match</font></span>
</c:if>
Why can’t you put those
<li>elements inside an identical construct?If you can’t put those elements together and don’t want to repeat the condition, you can always define a new variable:
This way those
<li>will be hidden even if the client has JS disabled, or any kind of JS problem.