View Single Post
  #1 (permalink)  
Old 11-27-2007, 05:00 AM
swapnanair swapnanair is offline
Member
 
Join Date: Nov 2007
Posts: 3
swapnanair is on a distinguished road
property for radio buttons
I am using struts, while designing a jsp page i am getting an error.
For radio buttons i wrote

<html:radio property="xxx" value="yes">yes</html:radio>
<html:radio property="xxx" value="no">no</html:radio>

but when i try to get this value

alert(document.forms[0].elements['xxx'].value);

i am getting as undefined.can any one help me regarding this one as how to define radio buttons with same property in struts
Reply With Quote
Sponsored Links