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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:48:47+00:00 2026-06-02T12:48:47+00:00

Putting radio buttons in a fieldset with data-role=controlgroup , jquery-mobile renders them like an

  • 0

Putting radio buttons in a fieldset with data-role="controlgroup", jquery-mobile renders them like an inset list, but the legend is simply text. I would like the legend to look like the list dividers of a list view.

So instead of this:

current situation

I would like something like that:

what I would need

  • 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-02T12:48:50+00:00Added an answer on June 2, 2026 at 12:48 pm

    You could put the radiogroup inside of a listview, and use the listdivider style for the title. To get to a result which is similar to what you demonstrated, you need to remove some padding, margins and borders.

    See this example: http://jsfiddle.net/zdMhF/

    The code:

    <div data-role="page">
        <div data-role="content">
    <ul data-role="listview" data-inset="true">
        <li data-role="list-divider">Choose a pet:</li>
    <li style="padding:0;border:0;">
    <div data-role="fieldcontain" style="margin:0;">
        <fieldset data-role="controlgroup">
                 <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked" />
                 <label for="radio-choice-1">Cat</label>
    
                 <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2"  />
                 <label for="radio-choice-2">Dog</label>
    
                 <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3"  />
                 <label for="radio-choice-3">Hamster</label>
    
                 <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4"  />
                 <label for="radio-choice-4">Lizard</label>
        </fieldset>
    </div>
    </li>
    </ul>
    </div>
    </div>​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have radio buttons in one radiogroup divided into 2 columns
I have putting such data into LinearView. as like below code: public void showResult()
Putting a precompiled regex inside two different hashes referenced in a list: my @list
I'm putting together a simple web page that presents the user with a jQuery
I am putting together an online radio station, and I am using Applescript to
I have a radio group that consists of 4 radio buttons and I'm trying
I am trying to get my radiobuttons to look like regular buttons (like the
I want After click on the radio, Radio-selected that background color is yellow putting
I am currently putting together some jQuery that will activate slideDown() when an element
I want to make a custom List View having Two TextViews and a radio

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.