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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:12:25+00:00 2026-06-03T20:12:25+00:00

If you create a buttonset of radio/checkbox inputs using jQueryUI, you must use explicit

  • 0

If you create a buttonset of radio/checkbox inputs using jQueryUI, you must use explicit labels. This means you must associate a label by ID to an input.

If you want to use multiple identical buttonsets on the same page, this means you can’t just use the same code for every buttonset, because ID’s must be unique in a document.

Most browsers will accept non-unique ID’s, but I’d rather not be forced to break web standards, and obviously there is no guarentee that browsers will continue to support non-unique ID’s in the future.

I could generate unique ID’s for every situation, but that complicates code and adds the problem of guarenteeing the ID’s are indeed unique.

What is the best way to deal with multiple identical buttonsets?

This demonstrates the issue: http://jsfiddle.net/C3NyV/1/

In my particular situation, the buttonset is generated by a plugin created using the Widget factory. I don’t know if this helps with a solution for this particular problem.

  • 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-06-03T20:12:27+00:00Added an answer on June 3, 2026 at 8:12 pm

    Regardless of jQuery UI you should be matching all input’s id attributes to a label with the for attribute for accessibility reasons. When a screen reader encounters an input field it looks for a matching label using this criteria.

    Instead of generating a unique identifier I would recommend using something more semantic to differentiate between the different sets. It may be more work but it’ll be more standard, accessible, and maintainable code.

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

Sidebar

Related Questions

I need to create a row in XAML which has a label,two radio buttons..
I am using jQuery to create custom radio buttons and i have a problem.
echo $this->Form->create('AmazonMatches', array('action' => 'selectMatches')); echo $this->Form->input('option_id', array('options' => $allAmazonMatches, 'type' => 'radio')); echo
I'm using jQuery UI's buttonset() to create a naviagation/tab bar inside tags. <section id=menu-container
I am using Wicket and would like to create a grid of radio buttons
Can someone point to an example of how to programmatically create & use Radio
I want to create an alert box with 3 radio buttons in it. It
I am trying to create a form with many groups containing many radio buttons.
I'm trying to dynamically create buttons at runtime with PyQT4.7 However, this being my
I would like to create some buttons with dynamic width using CSS sprites and

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.