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

  • SEARCH
  • Home
  • 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 8488131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:26:49+00:00 2026-06-10T21:26:49+00:00

I have a form with labels styled as class=input The labels are positioned inside

  • 0

I have a form with labels styled as class=”input”

The labels are positioned inside the form fields, and they are designed to disappear when you type in the field. That is working fine. The problem is when I reset the form after it is submitted.

jQuery("#requestform").get(0).reset();

This statement will clear the fields, but I also need to remove the “visibility: hidden” attribute from the labels so the labels will reappear.

I tried this, but it didn’t work:

jQuery('.formlabel').removeAttr("visibility");

here’s some sample html from my page:

<label class="input">
    <span class="formlabel" style="color: rgb(153, 153, 153); visibility: hidden;">Email</span>
    <input type="text" id="email" name="email" title="email">
</label>

what’s wrong with my jQuery? what’s the correct way to remove all ‘visiblity’ attributes from all my class=”formlabel” tags?

Cheers!

  • 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-06-10T21:26:50+00:00Added an answer on June 10, 2026 at 9:26 pm

    visibility is not an attribute but a CSS property. You need to use .css('visibility', 'visible'):

    $('.formlabel').css('visibility', 'visible');
    

    In case you do not need the layout-preserving behaviour of visibility: hidden consider using display: none – then you can simply use .show() to make the element visible.

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

Sidebar

Related Questions

I have a form with labels and input fields. When clicking into a field
I've got multiple input fields where they have the same class names. I need
I have a form like this: <form action='' onsubmit='void(0)' class=mainform> <label class=form3><input type=checkbox> One
I have a simple login form and have jQuery validate replacing the field labels
I have a form element defined as: <div class=field> <div class=name> <label for=User_LastName> Last
I have this form: <form> <div class=box> <h1>Contact form :</h1> <label> <span>Typ: </span> <input
I have a form field where users can change their passwords, but if they
I have some html form <div id=1> <div> <span class=checkbox style=background-position: 0pt -34px;></span> <input
I have a simple form with two fields and an optional field which is
I have an Element Like <div class=control> <label>&nbsp;</label> <input type=checkbox id=1><span class=controlText>Check Box</span> <div

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.