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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:39:36+00:00 2026-05-20T08:39:36+00:00

On a form I’ve two radio button Yes and No . I want to

  • 0

On a form I’ve two radio button Yes and No. I want to change the default look of radio buttons

enter image description hereenter image description here

to like this.

enter image description here

Edit: I would like to change the radio buttons into <a> anchor when JavaScript is enabled if it’s not easy to change the look of default radio via css.

  • 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-20T08:39:37+00:00Added an answer on May 20, 2026 at 8:39 am

    Easiest way? Set the images as labels with the for attribute pointing to the radio buttons. Then set the radio buttons to display:none;

    <input type="radio" name="radio[1]" /><label for="radio[1]"><img src="/yes.png"></label>
    <input type="radio" name="radio[2]" /><label for="radio[2]"><img src="/no.png"></label>
    

    p.s. This uses built in HTML functionality that works everywhere and doesn’t require javascript. Use some CSS meta selectors (:hover etc…) to add animation.

    UPDATE:

    Just looping back after a long time and realised this could do with a little more explanation for beginners. When the for attribute is set on a label, clicking the label is functionally the same as clicking the element it’s for attribute points to. For completeness, the for attribute should be set to the id of the form element.

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

Sidebar

Related Questions

Form docs: Comparable c=mock(Comparable.class); when(c.compareTo(anyInt())).thenReturn(-1); I would like: File tempDir=new File(test); Comparable c=mock(Comparable.class); when(c.compareTo(anyInt())).thenReturn(tempDir.mkdir());
The form has one or more groups of radio buttons on it. It is
My form is like this class SubmitForm(forms.Form): title = forms.CharField(max_length=100) story = forms.CharField(max_length=3000) #
My form looks like this def handle(self,filefield_data): Upload the file data, in chunks, to
My Form is something like this. I have saved field_name and field_values into a
My form action is set to a php file like this: <form name=addstudent action=includes/data.php?act=enquiry
Form the below string I would like to get the index of the starting
Form has the DoubleBuffered property (bool, inherited from Control). If this is set to
Windows form application(.Net 3.5) I have a textbox and a button on the form.
For some reason, after submitting a string like this Jack’s Spindle from a text

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.