Skip to Main Content

Intelligent Advisor

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get value from radio buttons?

User_B5W17Feb 14 2017 — edited Feb 14 2017

Hey all,

I have 2 values "Yes" and "No". I am attempting to dynamically manipulate another part of the interview using this value but can not seem to get the value through in javascript.

What is the correct syntax to check if the "Yes" radio button is checked. I have placed an example below of things I have tried

if ($("#radiobuttonID").checked() == "1"){

        // then do something

        }

if ($("#radiobuttonID").checked() == "True"){

        // then do something

        }

if ($("#radiobuttonID").val() == "Yes"){

        // then do something

        }

None appear to work, Any ideas on what the correct syntax would be to retrieve the value?

Thanks guys!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2017
Added on Feb 14 2017
9 comments
1,048 views