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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:27:48+00:00 2026-06-18T04:27:48+00:00

Our client need a custom design radio button style for the jQuery-mobile. Actually it’s

  • 0

Our client need a custom design radio button style for the jQuery-mobile. Actually it’s very similar to default jQuery-mobile radio button design in horizontal mode. For example jQuery-mobile define the horizontal radio button as

<fieldset data-role="controlgroup" data-type="horizontal">
    <legend>I like to buy and wear trendy must-haves</legend>
    <input type="radio" name="radio-choice" id="radio-choice-1" value="choice-1" checked="checked"  />
    <label for="radio-choice-1">1</label>

    <input type="radio" name="radio-choice" id="radio-choice-2" value="choice-2"  />
    <label for="radio-choice-2">2</label>

    <input type="radio" name="radio-choice" id="radio-choice-3" value="choice-3"  />
    <label for="radio-choice-3">3</label>

    <input type="radio" name="radio-choice" id="radio-choice-4" value="choice-4"  />
    <label for="radio-choice-4">4</label>

    <input type="radio" name="radio-choice" id="radio-choice-5" value="choice-5"  />
    <label for="radio-choice-5">5</label>
</fieldset>

Additionally our client wants to display the default radio button below the lablel. For example following image custom horizontal radio button

I would like to know does jQuery-mobile allow us to display the default radio buttons ? If so can you give an example ?

Or should we need to customize this ?

  • 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-18T04:27:50+00:00Added an answer on June 18, 2026 at 4:27 am

    Solution

    First thing, it can’t be done through the jQM configuration. This must be created manually through a jquery (like any other jQM widget, including fieldset).

    I have created an working example for you: http://jsfiddle.net/Gajotres/779Kn/

    Your only need to do one more thing, I didn’t want to bother with a custom images so I am using images created for my other example: https://stackoverflow.com/a/13634738/1848600

    Here’s an javascript needed:

    $(document).on('pagebeforeshow', '#index', function(){     
        $('<div>').addClass('checkBox').appendTo('fieldset div div.ui-radio label');
        $('input[type="radio"]').each(function(){        
            ($(this).is(':checked')) ? $(this).next().find(".checkBox").addClass('checked') : $(this).next().find(".checkBox").addClass('not-checked');
        });
        
        $(document).on('click', '.ui-radio', function(){      
            $('input[type="radio"]').each(function(){  
                $(this).next().find(".checkBox").addClass('not-checked').removeClass('checked');
            }); 
            
            if($(this).find('input[type="radio"]').is(':checked')){
               $(this).find('label div.checkBox').removeClass('checked').addClass('not-checked'); 
               $(this).find('input[type="radio"]').attr('checked' , false);
            } else {
               $(this).find('label div.checkBox').removeClass('not-checked').addClass('checked');             
               $(this).find('input[type="radio"]').attr('checked' , true);
            }        
        });  
    });
    

    Here’s css:

    .checkBox{
        width: 18px;
        height: 18px;
        background: #d9d9d9;
        border-radius: 3px;  
        margin: 0 auto;
        margin-bottom: 5px;
    }
    
    .not-checked, .checked {
        background-image: url("http://www.fajrunt.org/icons-18-white.png");
        background-repeat: no-repeat;
    }
    
    .not-checked {
        background-position: -18px 0;       
        background-color:#d9d9d9;
    }
    
    .checked {
        background-position: -720px 0;    
        background-color:#6294bc;
    }
    

    If you can wait few hours I will update a picture, I can’t do it from my current location.

    Final notes

    If you want to find more about how to customize jQuery Mobile page and widgets then take a look at this article. It comes with a lot of working examples, including why is !important necessary for jQuery Mobile.

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

Sidebar

Related Questions

I need to getting the client ip address using javascript.Actually,our connection provider ip is
We need to replace our current simple SIP client (X-lite) with custom developed SIP
I have a test database that I need to export into our client's test
I need to generate a WCF proxy for a service exposed by our client.
We are to deliver a SenseNet ECM based custom solution to our client. Solution
I'm currently developing a custom Lync client. I need full control over the UI.
Our product has two clients, a website and a windows application. Both clients need
Our client's request is to have tables in PDF with rounded corner. I only
Our client's web app restarts suddenly at random intervals. For each restart, we've found
Our client-server product has the protocol between them as XML over HTTP. Here, the

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.