0
голосов
2ответов
949 просмотров

Radiobutton.Checked not working for first button in group

I've got a check for the first radiobutton in my group of ASP.NET radiobuttons. For some reason, the page loads and that first button is automatically checked, not that we're setting it to be checked..it must naturally check itself since it's the first in the group. However, when I actually che...

1
голосов
2ответов
2842 просмотров

not getting radio button values in jquery ajaxform

I have a form which is binded to a JQuery Form (AjaxForm) object. In the form I have some radio buttons: <input type="radio" id="dialog_stranka_dodajuredi_tip_fizicna" name="dialog_stranka_dodajuredi_tip" value="2" /> Selection 2 <input type="radio" id="dialog_stranka_dodajuredi_tip_pr...

7
голосов
2ответов
4839 просмотров

how do radio buttons work with asp.net mvc binding

i have an strongly typed object that represents all of the textbox properties of a form and it works fine when i post to the controller. i now need to add a radio button to this form. how does that map to the strongly typed objects?

1
голосов
1ответов
1684 просмотров

Android RadioButton return a constant?

I am trying to perform a rating system, where with the choices to select from returns a constant number so I can insert a value into a database. My intentions are to have 3 choices, 'Great', 'Mediocre' and 'Bad'. I would like Great to be a constant for '3', Mediocre to have a constant '2' and Bad...

5
голосов
1ответов
5308 просмотров

Rails form with multiple nested models causes issues with radio groups

I'm having a problem with nested model forms that contain radio buttons, when I have multiple models all the radio buttons are treated as being in the same group. My model contains a has_many relationship like this: class Order < ActiveRecord::Base has_many :order_items accepts_neste...

0
голосов
2ответов
1154 просмотров

Cross-Browser Issue Regarding onchange/onfocus

I'm trying to turn a <label/> and <input type="radio"/> into a single button that when clicked, adds that specific product to a shopping cart. This example deals with 1 product, with potentially multiple variants, (ie. The Product would be "Denim Jeans", the Variants would be sizes, ...

8
голосов
4ответов
26970 просмотров

How do you get the checked value of asp:RadioButton with jQuery?

I need to do something like this: <asp:RadioButton ID="rbDate" runat="server" Text="Date" GroupName="grpPrimary" /> and be able to check the value of the radio button's checked value in jQuery, but my attempts like these don't return true/false. if ($('[name=rbDate]').attr("Checked")) ...

6
голосов
2ответов
11918 просмотров

radio button select on label click

How can I make radio buttons to be selected when I click on any of two labels in front of that radio button? I have following code for radio buttons: <div class="label_main" style="width:350px"> <div class="label_radio"> <input type="radio" name="group1" id="group1" val...

2
голосов
1ответов
5947 просмотров

Handling Spring MVC form:radiobutton with Jquery

has any one using Spring MVC with Jquery! i have got a strange problem when handling Spring MVC tags with Jquery. i used tags of spring MVC to get radiobuttons binded. <form:form name="Form1" method="post" action="Form1.do" commandName="Page1Command"> <form:radiobutton path="group" ...

13
голосов
2ответов
97120 просмотров

jquery enable/disable text box based on radiobutton

In my page (jsp) i have a radiobutton group and a textbox (which is disabled initially). Whenever the user clicks on a radio button the textbox should be enabled and when the user clicks on some other radio button the textbox should again get disabled. I am able to enable the initially disab...

136
голосов
3ответов
186519 просмотров

Using "label for" on radio buttons

When using the "label for" parameter on radio buttons, to be 508 compliant*, is the following correct? <label for="button one"><input type="radio" name="group1" id="r1" value="1" /> button one</label> or is this? <input type="radio" name="group1" id="r1" value="1" /&gt...

4
голосов
2ответов
9997 просмотров

Get the selected input type radio button ASP.NET

I have two radio buttons: <input type="radio" name="group1" />1 <input type="radio" name="group1" />2 How do I know which one is selected when the form is posted?

0
голосов
3ответов
5355 просмотров

Change background color on radio select

I have the following code <form id="form1" name="form1" method="post"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td ><div class="label_main" id="lab1"> <div class="label_radio"> <input type="radio...

0
голосов
1ответов
2084 просмотров

.net listview find if atleast one radiobox selected in eah row

i have a listview with 2 or more radio button controls in each row of it and i want to findout if atleast one radiobutton selected on submit. for example ROW 1 Quetison 1 radiobutton1 radiobutton2 radiobutton3 ROW 2 Quetison 2 radiobutton1 radiobutton2 ...

4
голосов
2ответов
10318 просмотров

IE HTML radio change event

I have a project that requires some values to get updated with JavaScript from an HTML radio change event. For some reason in IE, it seems that the onchange event isn't called until the radio has lost focus. Unfortunately due to the way the code is setup, I can't use the click event and have to...

2
голосов
1ответов
2416 просмотров

WPF - How to make RadioButtons generated by a DataTemplate be mutually exclusive?

One of the apps I am building needs to build a survey for users to take. The relevant classes related to my question are: Survey (string Description, List<Questions> Questions, QuestionTypes Type) Question (string Description, List<Choice> Choices) Choice (string Description) enu...

1
голосов
4ответов
22852 просмотров

JavaScript\JQuery - identifying if radio button value changed by click

I have a page that displays a list of records. The user can select the record status using radio buttons, e.g.: <div id="record_653"> <label><input type="radio" name="status_653" value="new" checked/>new</label> <label><input type="radio" name="status_653" v...

0
голосов
2ответов
2006 просмотров

Autoposting Radiobuttons in ASP.NET MVC view

I'm trying to add a couple of radiobuttons at the top of a View (using ASP.NET MVC). I want the two radiobuttons (option 1 and option 2) to cause the page to be refreshed/autoposted when changed. The two radiobuttons live inside a separate .asxc (Menu.ascx), and added with Html.RenderPartial in...

0
голосов
2ответов
356 просмотров

How to decide what radioButton is on in a View?

In my controller I am setting my value to true: ViewData[itemName] = true; Then in my view I am trying to set the item with true as select radio button. I have tried the following: <%= Html.RadioButton("default",item.Name, ((bool)ViewData[item.Name])==null ? false:true) %...

1
голосов
2ответов
1658 просмотров

Multiple <input type="radio"> with the same name,how to know which is checked from PHP?

... &lt;input type="radio" name="radio" id="radio1" /&gt; &lt;input type="radio" name="radio" id="radio2" /&gt; .. Supposed it's submited with method="POST".

1
голосов
3ответов
8954 просмотров

Creating a Cocoa radio button programmatically

I need to make a Cocoa radio button programmatically, can anyone explain how this might be done or how to do this well?

0
голосов
1ответов
2864 просмотров

How to change PHP form redirection depending on radio button or drop-down list selected?

The idea is to be able to perform some search query depending on radio button selected or drop-down choice. I know my PHP code is wrong, that's why I need your help ;-) My testing page is available here (click). HTML code is: &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "htt...

6
голосов
2ответов
7250 просмотров

How to implement a XAML Radio Button control with an ObservableCollection source?

I have the following ComboBox element in XAML: &lt;ComboBox ItemsSource="{Binding CollectionControlValues}" SelectedItem="{Binding CollectionControlSelectedValue, UpdateSourceTrigger=PropertyChanged}"&gt; &lt;ComboBox.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;TextBloc...

30
голосов
2ответов
38514 просмотров

Detecting a JRadioButton state change

How can I detect when a JRadioButton is changed from 'unselected' to 'selected' when clicked with the mouse? I've tried using an ActionListener on the button, but that gets fired every time the radiobutton is clicked, not just when it's changing state to 'selected'. I've thought of maintaining a...

280
голосов
28ответов
1098254 просмотров

How can I check whether a radio button is selected with JavaScript?

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?

0
голосов
3ответов
5734 просмотров

Jquery toggle background?

week DKK " id="radio2" value="75" /&gt; I have bunch of these div entry generated by while loop so I want to achieve this : WHEN input inside entry is clicked I want background image of entry div to change, but if I choose another radio in another entry div .. I'd like all...

4
голосов
5ответов
28490 просмотров

Get/Set Checkbox and Radio Button values using Prototype

Prototype is great, but with the 1.6.1 release, the library still doesn't allow getting/setting of grouped inputs (checkboxes and radio buttons.) I'd like a way to get an array of selected values with $F($("form").checkboxes). I'd like to be able to set those checkboxes to an array of values, on ...

1
голосов
1ответов
567 просмотров

Hide Radiobox and Checkbox Name on Visual Studio Design View

I have been designing controls in Visual Studio 2008 and as you may have notice when I use radio button and checkbox web controls for ASP .NET it shows the name on design view, this causes me to see an odd preview because the text are unnecessarily wide. I was wondering if there is any settings i...

0
голосов
1ответов
3620 просмотров

Rails: radio button selection for nested forms objects

I have the following form for photo_album which uses the nested forms feature of the Rails in saving the photos while updating the photo_album. And having trouble with the selection of radio button value. I want only one of the photos be able to select as the album cover, but due to the way rails...

0
голосов
1ответов
1080 просмотров

RadioButton Repeater asp.net

I've added a radiobutton to a repeater in asp.net. I've made the group names work with some Javascript. The problem I am having is when I click save button, the radionbutton.Checked is always false. I can't get the radio button to hold it's checked value.