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 6104729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:52:30+00:00 2026-05-23T13:52:30+00:00

I need help, any ideas? Firstly i want to hide some input element when

  • 0

I need help, any ideas?

Firstly i want to hide some input element when page open,
My approach creating dropdown $counter (1-8) and then depending on $counter Example:3.

I create/show existing element dynamically ($counter)<td></td> inside tr #ID.

How jQuery solve this problem?

Can u provide me example of switch case in jQuery to show/hide with defined td #ID?

Thanks Before

Rizq

  • 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-23T13:52:31+00:00Added an answer on May 23, 2026 at 1:52 pm

    Suppose your input has id of “input-1”, then you can hide it simply doing:

    // Assign a value to counter, might be some function to do that
    var counter = '1';
    
    // Get a reference to the element and hide it
    var input = document.getElementById('input-' + counter);
    input.style.display = 'none';
    
    // or 
    
    input.style.visibility = 'hidden';
    

    and to show it again:

    input.style.display = ''; // empty string
    
    // or 
    
    input.style.visibility = 'visible';
    

    The difference between the display and visibility properties is that the former will remove the element completely from the document flow, whereas the second will just make it invisible (read the relevant parts of the W3C CSS spec). Messing with display might make the document jump about a bit as it reflows, messing with visibility keeps it stable but leaves a blank space. Your choice which suits best.

    You can hide and show any kind of element using the same method. If you want the parent cell or row, go up the parentNode chain till you hit the first TD or TR as appropriate and hide it.

    There is a bit of a tutorial on the Mozilla developer site for messing with table elements using the DOM APIs.

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

Sidebar

Related Questions

I really need help with interfaces in general... Any resources that you guys would
I need help understanding some C++ operator overload statements. The class is declared like
I need help with writing some code that will create a random number from
I need some help with php. So my external php file(track2.php) is in /wp-content/plugins/buzzr_tracking.
I need some help figuring out why the following scenario does not work. I'm
i have a input tag which is non editable, but some times i need
i need some help to parse a html, extracting everything starting with http://, containing
I need some help, I have a replacement pattern: /(?<!\S)(\b|\(|\[)(?:\d+\s*x\s*)?\d+(?:\.\d+)?\s*litres($|\s|\.|;|,|\)|\])/is with function: preg_replace('/(?<!\S)(\b|\(|\[)(?:\d+\s*x\s*)?\d+(?:\.\d+)?\s*litres($|\s|\.|;|,|\)|\])/is', '',
I need help on this following aspx code aspx Code: <asp:Label ID =lblName runat
I need help with this route map routes.MapRoute(Blog_Archive, Blog/Archive/{year}/{month}/{day}, new { controller = Blog,

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.