Jump to content


Photo

validating multiple radiobuttons with javascript


  • Please log in to reply
1 reply to this topic

#1 mrjameer

mrjameer
  • Members
  • PipPipPip
  • Advanced Member
  • 102 posts

Posted 23 September 2006 - 11:27 AM

hi

i want to know how to validate multiple set of radiobuttons.for example
1.item A
a.item1-$100
b.item2-$200
c.item3-$300

2.item B
a.item4-$200
b.item5-$300
c.item6-$400

3.item C
a.item7-$10
b.item8-$20
c.item9-$30

when item1 of itemA is clicked its value should be displayed in one textbox and when 3 items had been selected from three sets of radio buttons its total value should be displayed in same textbox like this.how to do it please help me.

mrjameer

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 25 September 2006 - 04:00 AM

You just need to keep track on the state of each radio group.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users