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

  • Home
  • SEARCH
  • 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 7676951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:18:53+00:00 2026-05-31T17:18:53+00:00

I am coding a quiz module, which contains a radio button set, using jQuery

  • 0

I am coding a quiz module, which contains a radio button set, using jQuery UI. How do I change the color or the image of the button?

  • 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-31T17:18:55+00:00Added an answer on May 31, 2026 at 5:18 pm

    Ideally, you will want to use Themeroller if you can get away with it. However, if you want something completely custom, for example with custom imaged backgrounds and custom icons, while still retaining the functionality of the jQuery UI button, you still can. It will just take more work in overriding the default jQuery UI CSS styles and creating some new ones.

    For example:

    enter image description here

    The button on the right is a jQuery UI button styled with Themeroller, while the button on the left is still a jQuery UI button but with a custom icon and background. Here is what you need to do to accomplish a custom button:

    Start with backgrounds and your icon images:

    enter image description here
    enter image description here

    Here is the css you will need to create:

    .house{
        background-image: url("./yourIconImage.png") !important;
        width: 45px !important;
        height: 45px !important;
        margin-left: -22px !important;
        margin-top: -22px !important;
    }
    
    #houseLabel.ui-state-active
    {
        background-repeat: no-repeat;
        background-position: 0px -120px;
    }  
    
    
    .background
    {
        width: 60px !important;
        height: 60px !important;
        background-image:  url("./yourBackgroundImage.png") !important;
        border: 0px solid black !important;
        background-position: 0px 0px;
    }
    
    .background:active
    {
        background-repeat: no-repeat;
        background-position: 0px -120px !important;
    }
    .background:hover
    {
        background-repeat: no-repeat;
        background-position: 0px -60px;
    }
    

    Then in your javascript when you create your button:

       $("#button").button({
            text: false,
            icons: {
                primary: "house"
            }
        });
        $("#button").next(".ui-button").addClass("background").attr('id', 'houseLabel');
    

    With this, your #button will look like the custom styled button the left. Of course you will have to adapt this code to fit your resources by specifying the correct images and dimensions.

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

Sidebar

Related Questions

When coding, I use Dropbox to sync folder in which I keep my projects
While coding python I'm using only 2 spaces to indent, sure PEP-8 really recommend
I am using jQuizMe, the jQuery plugin for quizzes, and I want to get
Coding Language: C# Framework: .NET We have built a software, which among many other
Which coding style do you prefer: object o = new object(); //string s1 =
I'm using a JTabbedPane, and on each tab there's a panel, which changes when
Coding standards in place mean I do not have an option of using ajax
The coding is done using VS2008 There are two divs in my page namely
Coding in ASP.NET 4.0 / javascript/ jQuery/ WebServices The Scenario I have an analytics
I'm coding a quiz and record individual answers in a SQLite-Database. My table has

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.