Hi I want to use the value of selected radio button in one function. how do I get the value because document.getElementById('...') dont seem to work. it always returns the value of first radio button even if second is selected. Here is what I am doing
Hi Muhammad, you've got to iterate over the radios and find the checked one.
call the function with the radios' groupname findSelectedRadioButton('privacyOptions')
Muhammad Imad Qureshi
Joined: Sep 13, 2005
Hi Thanks for your reply But what will be my group name. because I cannot use style class. am i suppose to use property as the group name. because name itself cannot be a group name because it is my form name which has everything configured in struts-config.xml including the property fax (java class Fax) which has one property isPublic.
Thanks a lot
Joined: Mar 21, 2003
Ooops, What is name of the radios, if you open the html-pagesource in the browser? cb [ October 19, 2005: Message edited by: Chris Baron ]