How do I change the color of radio buttons?
I mean, a radio button itself consists of a round shape and a dot at the center (when the button is selected). What I want to change is the color of both. Can this be done using CSS? 26 Answers 26
I mean, a radio button itself consists of a round shape and a dot at the center (when the button is selected). What I want to change is the color of both. Can this be done using CSS? 26 Answers 26
I would like to show a radio button, have its value submitted, but depending on the circumstances, have it not editable. Disabled doesn’t work, because it doesn’t submit the value (or does it?), and it grays out the radio button. Read-only is really what I’m looking for, but for some mysterious reason it doesn’t work. … Read more
I have two radio buttons within an HTML form. A dialog box appears when one of the fields is null. How can I check whether a radio button is selected? 29 Answers 29
How to set radio option checked onload with jQuery? Need to check if no default is set and then set a default 15 Answers 15
I have 3 radio buttons in my web page, like below: <label for=”theme-grey”> <input type=”radio” id=”theme-grey” name=”theme” value=”grey” />Grey</label> <label for=”theme-pink”> <input type=”radio” id=”theme-pink” name=”theme” value=”pink” />Pink</label> <label for=”theme-green”> <input type=”radio” id=”theme-green” name=”theme” value=”green” />Green</label> In jQuery, I want to get the value of the selected radio button when any of these three are clicked. … Read more
I’m having some strange problem with my JS program. I had this working properly but for some reason it’s no longer working. I just want to find the value of the radio button (which one is selected) and return it to a variable. For some reason it keeps returning undefined. Here is my code: function … Read more
How can I group the radio buttons in Windows Form application (a lot like ASP.NET’s radiobuttonlist!)? So I can switch between each case chosen from the options. 9 Answers 9
I want to get the selected value from a group of radio buttons. Here’s my HTML: <div id=”rates”> <input type=”radio” id=”r1″ name=”rate” value=”Fixed Rate”> Fixed Rate <input type=”radio” id=”r2″ name=”rate” value=”Variable Rate”> Variable Rate <input type=”radio” id=”r3″ name=”rate” value=”Multi Rate” checked=”checked”> Multi Rate </div> Here’s my js: var rates = document.getElementById(‘rates’).value; var rate_value; if(rates ==’Fixed … Read more
I’ve got an enum like this: public enum MyLovelyEnum { FirstSelection, TheOtherSelection, YetAnotherOne }; I got a property in my DataContext: public MyLovelyEnum VeryLovelyEnum { get; set; } And I got three RadioButtons in my WPF client. <RadioButton Margin=”3″>First Selection</RadioButton> <RadioButton Margin=”3″>The Other Selection</RadioButton> <RadioButton Margin=”3″>Yet Another one</RadioButton> Now how do I bind the RadioButtons … Read more
I have group of radio buttons that I want to uncheck after an AJAX form is submitted using jQuery. I have the following function: function clearForm(){ $(‘#frm input[type=”text”]’).each(function(){ $(this).val(“”); }); $(‘#frm input[type=”radio”:checked]’).each(function(){ $(this).checked = false; }); } With the help of this function, I can clear the values at the text boxes, but I can’t … Read more