Link to home
Start Free TrialLog in
Avatar of dustbunnies
dustbunniesFlag for United States of America

asked on

How to get the selected value in a radiobutton in javascript?

Hello,

I have 4 radio buttons (all radiobuttons have the same "name" & same "id" but diff. "values")with a normal button beside it. When I click on the normal button, I want to be able to get the selected radiobutton's value through a function call. How do I do that in javascript?
ASKER CERTIFIED SOLUTION
Avatar of Samuel Liew
Samuel Liew
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
By the way, id should be unique.
Avatar of dustbunnies

ASKER

Thanks!