Avatar of dustbunnies
dustbunnies
Flag 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?
JavaScriptHTMLScripting Languages

Avatar of undefined
Last Comment
dustbunnies

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Samuel Liew

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Samuel Liew

By the way, id should be unique.
dustbunnies

ASKER
Thanks!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck