wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Problem on getting values from a radio buttons group Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem on getting values from a radio buttons group" Watch "Problem on getting values from a radio buttons group" New topic
Author

Problem on getting values from a radio buttons group

Ilh Oleo
Ranch Hand

Joined: Feb 07, 2007
Posts: 57
Hi to all in the forum!
I'm trying to develop a module for an aplication and i'm basing on an example from the jquery ui dialog
Example


But i'm using radio buttons and a datepicker field but problems occur when i try to add a second row to the table. It just adds the date value but the "motivo" value don't.
I mean everything works fine at the first attempt but at the next it fails.

Here is part of my code:


I think the problem could be because i'm using a radio group with this function.
When i do the first attempt to add something works fine but if i then add another row i don't get value of the radio button.
With this : $( "input[@name='motivo']:checked").val(); i'm trying to get the value from the radio button group which works fine the first time and i get this(using firebug)
[input#motivo1 1,input#motivo2 2,input#motivo3 3] but the next attemp i get just this [input#motivo1,input#motivo2,input#motivo3].



And this the html



But i don't know why works only one time.
Colud someone help me?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

Code overload. Pare the problem down to the smallest snippet that demonstrates the issue.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You are adding a radio button with no name, ho are you suppose to reference it by the name?

Eric
 
 
subject: Problem on getting values from a radio buttons group
 
Similar Threads
jQuery AJAX display issue
Is it possible to put a button inside autocomplete in jquery ui plugin?
BeanUtils.populate IndexOutofBound
jQuery not working on page
My First Real jQuery Plugin - Feedback