Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6650449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:53:40+00:00 2026-05-26T00:53:40+00:00

<li><label>Email:</label> <input type=’text’ name=’username’ id=forgot_username /></li> <li><label>&nbsp;</label> <input type=submit id=forgot_btn value=Send Reminder class=btn></li> I

  • 0
<li><label>Email:</label> <input type='text' name='username'
                            id="forgot_username" /></li>
                        <li><label>&nbsp;</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>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:53:40+00:00Added an answer on May 26, 2026 at 12:53 am

    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:

    <c:set var="condition" value="0">
    <c:if test="${param.message == 3}">
        <c:set var="condition" value="1">
    </c:if>
    
    <c:if test="${condition == 1}">
                            <span class="error"><font color="red"> Email does not match</font></span>
                        </c:if>
    
    ....
    
    <c:if test="${condition == 1}">
    <li><label>Email:</label> <input type='text' name='username'
                                id="forgot_username" /></li>
                            <li><label>&nbsp;</label> <input type="submit"
                                id="forgot_btn" value="Send Reminder" class="btn"></li>
    </c:if>
    

    This way those <li> will be hidden even if the client has JS disabled, or any kind of JS problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi in the code below i want to send the email (with input data
I'm using a simple form with a name, email and comment field to send
i have a label tag and i want to remove text between <label> </label>
I have a label which labels the line numbers based on the text on
html structure: <form method=post id=comment-form accept-charset=UTF-8> <div class=form-item form-type-textfield form-item-name> <input type=text id=edit-name name=name
My script isn't getting data from JSON: <script type=text/javascript src=jquery-1.7.min.js></script> <script type=text/javascript> $(document).ready(function ()
I am getting an OpenSSL::SSL::SSLError when I try to send an email via my
var text = $(input#text).val(); if (text == ) { $(input#text).focus(); alert(Please complete all fields);
I have multiple checkboxes in CakePHP's Add/Edit view, created with: echo $this->Form->input('email_warning_chb', array('type'=>'select', 'multiple'=>'checkbox',
For some reason i cant receive any email from my submit form - is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.