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

The Archive Base Latest Questions

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

I have this line of Javascript which runs a function I sourced online. However

  • 0

I have this line of Javascript which runs a function I sourced online. However it turns out to not be ie compatible so I’m looking to convert it to a Jquery call.

I have absolutely no Jquery experience and while the documentation is good, I need a hand understanding how to get it to gel with pre-existing Javascipt.

classElements[i] = document.getElementsByClassName(show_hide_class_selectors[i]);

I have found the class selector at http://api.jquery.com/class-selector/ which seems to do what I want.

If I used this line (show_hide_class_selectors[i] is a string)

classElements[i] = $("." + show_hide_class_selectors[i]);

Will classElements[i] then contain all nodes of the class provided by show_hide_class_selectors[i]?

I’m asking now so I don’t spend the next 2 hours downloading, messing and then getting pissed with it.

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

    Yes, $(".foo") will return all nodes having the class foo, but wrapped in a jQuery object.

    If you just want a plain array of DOM elements, you’ll need to do $(".foo").get().

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

Sidebar

Related Questions

I have this line of javascript which creates a listing of store locations, and
I have this line of JavaScript and the behavior I am seeing is that
I have this line in a javascript block in a page: res = foo('<%=
I have this code: <body onLoad=subcatSelection();> The function is inside a .js file which
I have this JavaScript which should loop through my XML and get my data.
I have this piece of javascript which is supposed to validate on the clientside.
I have this line in a useful Bash script that I haven't managed to
I have this line of code for page load: if ($(input).is(':checked')) { and it
I have this line in the declarations section: Private filePath As String And something
I have this line in my program : InputStream Resource_InputStream=this.getClass().getClassLoader().getResourceAsStream(Resource_Name); But how can I

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.