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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:58:44+00:00 2026-05-16T05:58:44+00:00

When I see a question such as: How do I exclude elements whose ID

  • 0

When I see a question such as: How do I exclude elements whose ID ends in a certain suffix using jQuery I cannot help but thinking: does jquery encourage too much of this sort of ad hoc (and processor intensive) querying of the DOM? Shouldn’t we be organizing our UI’s better so that these sorts of queries are kept to a minimum, if not entirely eliminated.

  • 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-16T05:58:45+00:00Added an answer on May 16, 2026 at 5:58 am

    Does it encourage it? No, I don’t think so. Does it better enable it? Sure you could argue that, but it’s not jQuery specific, any library with a selector engine is guilty of the same thing.

    How is this different from any framework though?

    Specific to the topic at hand, I think “if not entirely eliminated” is unrealistic, what’s the alternative, give every single element it’s own ID? You often need to traverse, for example this menu when hovered opens its own children, etc.

    I fully support as clean a DOM as possible, because it also results in the cleanest script possible (and eliminates it where possible). I’m also in favor of using CSS where CSS will do the job, e.g. I think the simple things like :hover are ignored far too often.

    Complete opinion: Is this jQuery’s fault? No, not really, unless the fault is being extensible and user-friendly, it’s just has a very low entry threshold and it can more easily be the tool of the lazy developer. Whatever’s the easiest-to-use library will also keep that crown, comes with the territory (and I’m not saying that’s jQuery, depends on the developer as to what library if any is the easiest to use).

    What you’re talking about is the developer’s fault, they’re the one not learning about one technology (HTML) and trying to band-aid it with another (JavaScript). The root of the problem doesn’t lie in jQuery being a possible solution, it lies it the fact any solution is needed in the first place.

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

Sidebar

Related Questions

I see another question on stackoverflow.com whose title seems similar but that doesnot fulfil
I see this question here on SO but I am not sure that answers
I see many question/answers about how to convert a Hashtable to a Dictionary, but
I usually see this question asked the other way, such as Must every ivar
I am using Visual Studio 2008, and Resharper 5.0: There are certain keywords such
I see that this question has been asked before but the context around the
I'm sorry for this as there has been lots instances of such question, but
sorry for such a specific question but upon looking at the following algorithm written
I see alot of question about this error, but some one can tell me
I'm sorry if such a question is asked before but i could not find

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.