radio-button

HTML Radiobuton values in ASP.NET

I'm having some real problems with a group of HTML Radiobuttons when I try to pass the selected values back and forth between JavaScript and ASP.NET. <input type="radio" id="radio1" name="markerSel" value="1" checked=true /> <input type="radio" id="radio2" name="markerSel" value="2" /> <input type="radio" id="radio3" name="markerSel" va...

Line wrapping in GtkCheckButton or GtkRadioButton labels

Is there any way to get the label of a GtkCheckButton or GtkRadioButton to wrap when its parent container is resized small enough so the label won't fit on one line? ...

HTML - aligning radio buttons and text

Say you've got two simple table cells next to each other. One contains a radio button and text. The other one contains just text. The radio button's size is set to 16x16 pixels (don't ask me why, assume that it just is). The font size is 12 pixels. How do you make both labels and the radio button to line up consistently in all major br...

Adding click event to radio boxes Ext.form.Radio in Ext JS

I have a simple radio button: new Ext.form.Radio({ id: 'ptype', boxLabel:'Yes', name: 'price_type', value: 1 }) However Im having trouble adding a on click event ot it. I usually use: listeners: { click: function (a,e) { ...

dynamic radio buttons - handling their values.

I am creating dynamic radio buttons on the server side and adding it to a particular column of a jquery datatable. This is what i am doing on the server side. string radio = "<label id='lbl" + index + "'><input type='radio' value='2' id='" + radioButtonName + "' name ='" + radioButtonName + "' />" + "Rejected</label> <br>" + "<label i...

Value radio boxes to input text with javascript

Hello, i try to get the value from a radio box in a input box <form action="test()"> <input type="radio" name="typ" id="typ" value="ws" onfocus="test()" checked> ws <input type="radio" name="typ" id="typ2" value="nb" onfocus="test()"> nb <input type="radio" name="typ" id="typ3" value="za" onfocus="test()"> za <input typ...

css for disabled radio button

by default, when we put disabled="disabled" for <input type="radio".. . it will turn grey color. what is the css i need to use the change the color ? can i do this instantly with jquery ? ...

Ajax call when clicking a radio button sometimes alternates between being instant to taking ~2 sec

There are 2 radio buttons. Depending on which one you click, the drop down box will load that set of data. Depending on the first one I click, that one will take about 1-2 secs to load, while the other loads instantly. Even click back and forth. I was wondering why, and how I might be able to have it stop loading instantly (weird, I know...

CSS to make radio buttons show as small coloured boxes

Im implementing a site with shopping cart features and want the user to be able to select the color for the product they are purchasing. Let's say I started with something like this: <form action=""> <input type="radio" name="color" value="red" /> <input type="radio" name="color" value="green" /> <input type="radio" name="color" ...

Rails -- Passing radio button values to a parameter

I'm trying to use some radio buttons to be selected and use the parameter as a find condition for my model... SO far I have. View <% form_tag do %> <p> <%= radio_button_tag :interest, "apple" %> Apple </p> <p> <%= radio_button_tag :interest, "orange" %> Orange </p> <p> <%= radio_button_tag :interest, "peach" %> Peach </p> <p> <%= radi...

Get ID value from set of radio buttons

Hello, I'm trying to get the ID value of the set of radio buttons. Here is the radio buttons. <input id="1" type="radio" title="2" value="6/1/2010" name="vacationDay"> <input id="2" type="radio" title="2" value="6/2/2010" name="vacationDay"> <input id="3" type="radio" title="2" value="6/3/2010" name="vacationDay" checked='checked'> H...

How to create radio buttons mutually exclusive with different names?

I have few radio buttons , they belong to same category, but I want to name differently and want them to be mutually exclusive. How do I do that? Based on selected value, I do different action and I can't access them if they have same name. I am writing code in Java. ...

It's possible to put a TextView inside of a RadioGroup. But, is it good practice?

What I'm trying to accomplish: When the user clicks a specific RadioButton, a TextView should appear immediately below the selected RadioButton. My solution so far: Code-wise, put a TextView inside of the RadioGroup and set it's initial visibility to "invisible". Then, when a specific RadioButton is clicked, set the hidden TextView's vi...

Multiple IF's and ELSE IF's in javascript

Hey guys, So what's getting pushed to this array is dependant on a few radio boxes. I've got this for standard and wheelchair seats: if(document.getElementById('standardseat').checked) { //Standard seat is checked seatsArray.push(e.posX, e.posY); } else if(document.getElementById('wheelchairseat').checked) { //Wheelchair seat is ch...

android - controlling state of RadioButton

i am gettin 1 problem in d android application that i have made. -> i have a 3 RadioButton's on 1 activity screen -> after a Button is pressed(on same activity) the text associated with all of them should change and all RadioButton's must be unchecked and should be clickable the text is changing properly and the RadioButton's are beco...

jquery check onload which radiobutton is checked

Hello, given following html <input id="IBE1_IBE_NurFlug1_RadioButtonList1_0" name="IBE1$IBE_NurFlug1$RadioButtonList1" value="Blue" type="radio"> <label for="IBE1_IBE_NurFlug1_RadioButtonList1_0">Blue</label> <input id="IBE1_IBE_NurFlug1_RadioButtonList1_1" name="IBE1$IBE_NurFlug1$RadioButtonList1" value="Green" checke...

jQuery :input[value] with Radio buttons

I'm using: var data = $("form :input[value]"); To get all the values in a form and passing the data to an ajax script. My problem is it doesn't work with RADIO buttons - it always sends the last value for the radio group. Any ideas on how to get the checked radio button along with all the other form values? ...

jQuery Post with Radio Button Value

Here is my question: I have an approval page for user submitted entries to my site. The approval page has two radio buttons for each entry (approve or deny). How can I make those radio buttons update the database table to 'approved' or 'denied'? I have jQuery and would love to use that and the .post() function, just not sure on how th...

How can I set the XAML for the first WPF RadioButton in a ListView control to be checked by default?

I have a WPF ListView control containing a number of RadioButton controls using data binding. I'd like the first RadioButton in the group to be checked by default, preferably set in the XAML rather than programmatically, but haven't managed to achieve this. My XAML for the control is: <ListView ItemsSource="{Binding OptionsSor...

radio buttons act like checkboxes with jQuery

Hi, Is it possible a radio buttons group to have the functionality like checkboxes? (possible jQuery solutions) Thanks ...