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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:35:43+00:00 2026-05-25T03:35:43+00:00

I am stuck, I am working with tables so using Div does not seem

  • 0

I am stuck, I am working with tables so using Div does not seem to work to let me get rid of stuff, but this does work, I just cannot figure out how to use it dynamically.

document.all.???.style.display=”none”

My idea is to collect the item names in an array and then use the array to remove the desired stuff from the screen. I just cannot figure out how using javascript and vbscript to collect the array, and then to retrieve the value in the javascript function. That same approach works inline with the code, to supress items that I don’t want to show such as headings with no detail.

In that case I use a vbscript variable and
document.all.<%=x%>.style.display=”none”;

How can I get X out of the array or directly reference the array in this statement?

  • 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-25T03:35:44+00:00Added an answer on May 25, 2026 at 3:35 am

    You can get an array of the elements with a particular name using document.getElementsByName(nameOfElement); So something like this should work for you:

    var arrayOfElementNames = ['Name1', 'Name2']
    for (var nameIndex = 0; nameIndex < arrayOfElementNames.length; nameIndex++) {
      var elements = document.getElementsByName(arrayOfElementNames[nameIndex]);
      for (var elementIndex = 0; elementIndex < elements.length; elementIndex++) {
        elements[elementIndex].style.display = 'none';
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ive been working some time on own template engines but i alwais get stuck
I'm trying to get an installation of webOrb 3.6.0.3 working, but am stuck getting
When working on developing new software i normally get stuck with the redundancy vs
I'm working on a CMS using VB.NET 3.5 and I'm stuck on a concept.
I am working on an Asset DB using a lamp stack. In this example
Been stuck on this for days, things just aren't working with how I'm setting
I am stuck figuring out a working SQL Query for the fallowing: I need
I am working on a problem and got stuck at a wall I have
Working on a simple C program I'm stuck with an if test: int line_number
Im working on an ASP.Net app with c#. I am stuck on a problem

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.