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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:26:18+00:00 2026-05-23T01:26:18+00:00

Id element is unique in whole document, it is ok. How about this $(#Genders,

  • 0

Id element is unique in whole document, it is ok.
How about this

$("#Genders", $("#tableFor_SEARCH")).buttonset();

and

$("#Genders", $("#tableFor_CREATE")).buttonset();

firefox seems ok with this, can this usage acceptable for all browsers and any drawbacks?

Note: I attempt this usage because jquery works with id selector and radio & checkbox helpers
(espcially label for tag)

  • 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-23T01:26:19+00:00Added an answer on May 23, 2026 at 1:26 am

    You can use multiple id:s in a selector, that is no problem. You don’t even need to specify it as a scope:

    $("#tableFor_SEARCH #Genders").buttonset();
    

    Having conflicting id:s in the page will however be a problem. If the same id occurs more than once, some browser might choose to ignore any of them. Even if it works with all current browsers, it’s still a violation of the standards and it can stop working with any browser update.

    Having two id:s in a selector can still be useful, for example if you are using the same script for several pages, and use the id to specify what functionality is on the page.

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

Sidebar

Related Questions

In asp.net repeater how can I change what unique id each element generated. Now
I am having trouble to use the regular expression in between the unique element
elements must be unique, how can I do it with Haskell I tryed with
How to get unique values based on dictionary key, which is an element of
This is about thread safety of std::map . Now, simultaneous reads are thread-safe but
Can anyone help with converting data from an XML document into an associative array?
I've been trying to get my own opinion about this issue but could not,
I have a set of unique elements (there are not two identical elements). And
Example: element = ['Flaming', 'Cold'] fire_properties = ['of Fire', 'of Flame'] cold_properties = ['of
I have a block element (DIV) who stretches across an entire page. It contains

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.