I need that every time a user check a radio button from the list, the answer value (or even better answer code e.g A1)
will be copmared to the right answer, and alerted if wrong. tried this not working jquery:
Else : $('input.radio:checked', thisQuestion).attr('value') give the code, not the 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.
Hi
Thank you for helping.
1) yep... forgot the listener.
2) debugging> I think it's the "var thisQuestion = $('#question{QID}');"
the following code is working but the alert shows [object object]
Else : $('input.radio:checked', thisQuestion).attr('value') give the code, not the text …
Then : if(q1Ans != "A1") {
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.