Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

check a radio button with Javascript

More
6 years 9 months ago #177494 by BaranD
Hello,


Is the following syntax correct to check a radio button with JavaScript?

$("#answer237485X65X532JN2").text('JN2');



The following does work to retrieve the value:

$("#answer237485X65X530JN2").val();


Kind regards,

Baran
The topic has been locked.
More
6 years 9 months ago #177502 by DenisChenu
learn.jquery.com/using-jquery-core/faq/h...put-or-radio-button/

$("#answer{SGQ}JN2") if you are inside a question text.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: BaranD
The topic has been locked.
More
6 years 9 months ago #177504 by BaranD
Thank you! I got it working
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose