Questions tagged [radio-button]

Radio buttons are elements used in forms. They let a user select exactly one of a limited number of choices.

Radio buttons are a GUI element found in many types of forms, both on the web and in standalone applications, and they are used to let the user select one option out of a set of choices. It is often useful to provide some form of visual grouping around a collection of radio buttons so as to help the user see more clearly what they are picking between.

Where there is a binary choice, it can be better to use a instead. Some types of choices may be better suited to the use of a element or a element, though radio buttons have the advantage of allowing the user to see all the possible options (and often descriptions of them) at once, which enhances discoverability at a cost of occupying more screen space.

11983 questions
2
votes
2 answers

prevent radio button to be checked when clicked

I need to stop prevent default behavior of radio button to check if it checked before I click it or not, I'm using .live('click', function (){}) because the HTML added to DOM with AJAX
Zamblek
  • 789
  • 1
  • 12
  • 21
2
votes
2 answers

RadioListTile onchange value is object? type

I am trying to make multiple choice questions using RadioListTile. RadioListTile( value: 1, groupValue: 1, onChanged: (val) { print("Value"); print(val.runtimeType); setSelectedRadio(val); }, title:…
doc
  • 828
  • 2
  • 6
  • 18
2
votes
1 answer

Using the label prop for FormControlLabel

I am trying to nest a RadioGroup inside AccordionDetails, then insert the Accordion list as options inside an Autocomplete component within its renderOption props. The problem I am having is that clicking on the label (which is a span element when…
2
votes
1 answer

Make input radio change image when one clicks on each of them

I have a group of radio buttons that set to show image instead of normal radio button. I want to change the image when each of them are checked. I wrote the jQuery and it works but it doesn't return to normal if its not checked. So in this case my…
sam kh
  • 129
  • 1
  • 7
2
votes
1 answer

How in Delphi 10.4.2 show vertical separator lines in a TGridPanel that has a group of TRadioButton in its columns

I have a TGridPanel that has 6 columns (as an example). In each column there is a TRadiobutton. All five TradioButtons from a group. In this way the five TRadioButtons work as expected, and at the same time only one of them can be checked. To add…
Zonouzi
  • 81
  • 9
2
votes
2 answers

Need to change the border color of customised radio buttons during checked

I have customized 2 radio buttons using bootstrap and want to achieve the below-expected behavior: Initially, both the radio buttons have grey color and I want to change the border of the radio button to blue only for the button where I have…
Script Host
  • 911
  • 1
  • 11
  • 22
2
votes
1 answer

Execute observeEvent depending on radiobuttons input

I just started learning R to program an experiment for my thesis, so sorry in advance for asking what are probably super basic questions. I want to build a survey (in German) consisting of multiple pages. Before the respondents can start they have…
user15841231
2
votes
2 answers

Dynamically create radio button Group in ListView.builder() flutter

I want to create such a UI with in which ,in the last, i get the details of all the radio Buttons selected. and this is My Full code And when i tried to do this,all radio button are turned to one side. import…
Sandeep Pareek
  • 1,636
  • 19
  • 21
2
votes
4 answers

binding to a radio button

I have the following radio button bound to the variable IsAllowed Yes How can I make the No button to take the opposite value only…
kaycee
  • 1,199
  • 4
  • 24
  • 42
2
votes
1 answer

How to create a few radio boxes in ASP.NET MVC?

yeah :( simple question * blush * Lets imagine i have the following enumeration:- string[] languages = new string[] { "en (uk)", // English (colour) "en (us)", // English…
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
2
votes
1 answer

jQuery Validation - Require answer to all questions or opt out of survey

We have a registration form that asks for demographic information with the additional option to not provide any information. However, to keep our numbers adding up properly, we want to require you to enter all information if you select any…
boflynn
  • 3,534
  • 1
  • 27
  • 28
2
votes
1 answer

How to do two-way binding on a radio button Blazor child component

I'm trying to create a radio button component in Blazor that has two way data binding but I can't seem to get the value (testNumber) on the parent to change. I am new to Blazor and C#, so any help would be greatly appreciated.…
2
votes
1 answer

Dynamic radiobutton

This is aspx page which have datalist in datalist radio buttons are there. it is where radio button comning dynamicly i want to check all radio buttons are checked or not through javascript please help me
user838804
  • 69
  • 9
2
votes
2 answers

how to load data from json file to radio buttons using purely JS?

When clicking on one of the radio buttons in HTML file, I want to get the frameworks data (names and images) from data.json file and filter them according to the button chosen { "frameworks": { "backend": [ { "name": "nodeJS",…
Hu FA
  • 31
  • 4
2
votes
2 answers

Problems aligning radio buttons with text

I have the following markup: