I have multiple response with below 6 options. Now, I want to auto-select "All of the above" option if a respondent select all the responses.
Brand A
Brand B
Brand C
Brand D
Brand E
All of the above.
Auto select option in multiple choice question
Best answer by SurajK
Write the below code in adOnReady function,
jQuery('input[type="checkbox"]').change(function(){
if (jQuery('input[type="checkbox"]').eq(0).is(":checked") && jQuery('input[type="checkbox"]').eq(1).is(":checked") && jQuery('input[type="checkbox"]').eq(2).is(":checked") && jQuery('input[type="checkbox"]').eq(3).is(":checked") && jQuery('input[type="checkbox"]').eq(4).is(":checked"))
{jQuery('input[type="checkbox"]').last().prop('checked',true)}
else{jQuery('input[type="checkbox"]').last().prop('checked',false)}
});
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
