Hi Experts,
I have a survey which asks for Country drop-down selection at Q-2.
This country value is needed into further 2 drill-down questions to pre-fill what was selected in Question-2.
I tried multiple JS codes from other threads but could not succeed.
Example: [tried with val and text both]
- jQuery("#"+this.questionId+" select").find("option:eq(0)").text("${q://QID2/ChoiceGroup/SelectedChoices}").prop({"disabled":true,"selected":true});
- var selects = jQuery("#"+this.questionId+" select"); selects.eq(0).val("${q://QID2/ChoiceGroup/SelectedChoices}");
Can someone please help with what the JS code should look like and in which event OnLoad/OnReady ?
Thanks - Naro