radio-button

JQuery How to Uncheck A radio button

Hello all, I have group of radio buttons. I want to uncheck the check buttons after an ajax form submitted. 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; }); ...

CakePHP, Lining up radio buttons horizontal rather than vertical.

I have been looking at the cookbook - 7.3.3 Automagic Form Elements trying to find a way for radio buttons to line up horizontally rather than vertical. I have been looking at the 'div' => 'class_name' $options also the "$options[‘between’], $options[‘separator’] and $options[‘after’]" but have been unsuccessful. Is there a "cake" way ...

Styled radio buttons (jquery?)

I need the functionality of a radio selection, without the style. How can I style something (anything) to work like a radio button, and capture the input in a form? ...

Problem with RadioGroup.ControlCount in Delphi 2010

I'd like to set RadioButton properties in runtime in procedure InitRadioGroup(). It fails because RadioGroup.ControlCount is 0, although there are 3 RadioButtons in RadioGroup. What is wrong in D2010 RadioGroup? Same code works fine in Delphi 2007. procedure InitRadioGroup(RadioGroup: TRadioGroup); var i: integer; RadioButton: T...

Make radio buttons "checkable": HTML

How do I make radio buttons operate more like a check box? I need the function of a radio button, but it needs to be able to be de-selected. ...

Add margin between a radiobutton its label in Android?

Is it possible to add a little bit of space between a RadioButton and the label while still using Android's built-in components? By default the text looks a little scrunched. <RadioButton android:id="@+id/rb1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="My Text"/> I've tried a cou...

Radioboxes and JQuery

Here's my HTML code: <label><input type="radio" id="fNuttig" /> Nuttig</label> <label><input type="radio" id="fNietNuttig" /> Niet nuttig</label> <label><input type="radio" id="fNogUitTeMakenNuttig" />Nog uit te maken</label> And here's my javascript code: if ($('#fNuttig').val() == 'on') { nuttig = 'Nuttig'; } else if ($('#fNietNut...

How to get checked radio button value using AJAX in PHP?

Hello, I'm going to get the checked radio button value using AJAX in PHP. I have done the following code, but i can't continue. I need your help. ajax_radio.php <html> <head> <script type="text/javascript" src="ajax.js" ></script> </head> <body> <input type="radio" name="radio1">Blue</input> <input type="radio" nam...

Noobie WPF namespace and converter problem

Hi All, Please forgive the noob question but I'm going round in circles and need answers... Anyway, I've been looking at this article WPF: How to bind RadioButtons to an enum? but I just can't get the convertor to be recognised within the XAML file. <Window x:Class="Widget.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/...

WPF: Storing a radio button selection in the settings

I've been looking at this article but am having issues saving the enumerated value in the settings. I have created the following enum public enum FType { None, Delimited, FixedWidth, XML }; I have the radio button selection working nicely but I now want to store the selected option in the settings but there doesn't ap...

i need to put 10 radiobutton values in insert statement in vb.net with while loop

i have 10 radio buttons that have yes/no values. These are options to one question, so need to in the database under 1 record. so - question1 yes, question 1 no, question1 yes and so on. i want to use a while loop or some other loop to take all these values and insert them or update them in the database for that particular question. any ...

JQuery - find a radio button by value

How would I use JQuery to find a radio button by its value? ...

Windows Form Radio Button (How do i Group) C#

Hello, I'm new to the windows form scene and I was just wondering how I could group the radio buttons (alot like ASP.NET's radiobuttonlist!) So I can switch between each case chosen from the options. Thats it really, thanks... ...

RadioButtons, ListViews, and Grouping, oh my!

I've got a project I'm working on where I need to put a RadioButton inside a ListView, and have them all have the same GroupName. (can't use RadioButtonList, long story). Anyway, this seems to be a well known bug in .NET, so I've implemented the solution found here: http://stackoverflow.com/questions/377393/asp-net-radiobutton-messing-...

flex add radiobutton child to VBox

I am having troubles adding a radiobutton to a VBox in actionscript. var radioButton:RadioButton = new RadioButton(); radioButton.groupName = "source"; radioButton.label = "label"; radioButton.selected = false; radioButton.addEventListener(Event.CHANGE, sourceChangeHandler); vBox.addChild(radioButton); I firs...

Silverlight get selected row data in DataGrid

Hi, In my Silverlight application I have defined a datagrid with an template column containing a radio button as follows: XAML: <data:DataGrid x:Name="Grid1" Margin="8"> <data:DataGrid.Columns> <data:DataGridTemplateColumn Header="RadioButtons"> <data:DataGridTemplateColumn.CellTemplate> <DataTe...

WPF Databound RadioButton ListBox

I am having problems getting a databound radiobutton listbox in WPF to respond to user input and reflect changes to the data it's bound to (i.e., to making changes in the code). The user input side works fine (i.e., I can select a radiobutton and the list behaves as expected). But every attempt to change the selection in code fails. Sile...

How to set the IsChecked property of a RadioButton from the Contents of a ComboBox declaratively?

I have a comboBox which has the following items: a1, a2, a3, a4 and I have two RadioButtons r1 and r2. This is what I want to accomplish: if the user selects item a2 from the combobox the IsChecked property of r1 should be set to true. If the user selects either item a3 or a4 from the combobox the IsChecked propertyr of r2 should be set ...

Jquery Onclick doesnt seem to work for me...

My php page uses sequence of three radio buttons and two out of three calls jquery click event and toggles a div accordingly... Here is my Jquery function.... $(function() { $("#click_here").click(function(event) { event.preventDefault(); $("#div1").slideToggle(); }); $("#div1 a").click(function(event) { event.p...

How to pass an enum to Html.RadioButtonFor to get a list of radio buttons in MVC 2 RC 2, C#

I'm trying to render a radio button list in MVC 2 RC 2 (C#) using the following line: <%= Html.RadioButtonFor(model => Enum.GetNames(typeof(DataCarry.ProtocolEnum)), null) %> but it's just giving me the following exception at runtime: Templates can be used only with field access, property access, single-dim...