I found a solution in the following link

but is that means $F is only for textbox?


http://proto-scripty.wikidot.com/prototype:tip-fetching-radio-button-value

Element.addMethods('form',{
   getCheckedRadioValue: function (formElement, name) {
     formElement = $(formElement);
     var checkedElement = formElement
       .select('input[name='+name+'][type=radio]') //gather all radio
inputs with provided /name/
       .find(function(inputElem){ return inputElem.checked;}); //find
first checked element
     if (checkedElement) {
       return checkedElement.getValue(); //return iths value if found
     } else {
       return null;
     }
   }//end of getCheckedRadioValue

 });



On Jul 30, 10:35 am, vtsuper <vtsu...@gmail.com> wrote:
> I have a simple question, is $F() cannot get radio button values?
>
> Should I use the old method document.form.xxx[0].checked to check the
> value???
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to