Hi,
I have followed a previous discussion on how to add numbers in radio buttons in a bipolar matrix table. I copied the following JavaScript into my own survey:
jQuery("#"+ this.questionId +" tr.ChoiceRow > td.c4 > label").html("1");
jQuery("#"+ this.questionId +" tr.ChoiceRow > td.c5 > label").html("2");
jQuery("#"+ this.questionId +" tr.ChoiceRow > td.c6 > label").html("3");
BUT, all my radio buttons only show a "1". Can somebody please advise?
Adding numbers in radio buttons in a bipolar matrix table - troubleshooting
Best answer by SurajK
Hi LduP ,
If you want to add the labels for the first row then you can use the below code, this will add the label number for the radio button in first row.
jQuery("#"+ this.questionId +" tr.ChoiceRow > td:eq(1) > label").html("1");
jQuery("#"+ this.questionId +" tr.ChoiceRow > td:eq(2) > label").html("2");
jQuery("#"+ this.questionId +" tr.ChoiceRow > td:eq(3) > label").html("3");
jQuery("#"+ this.questionId +" tr.ChoiceRow > td:eq(4) > label").html("4");
jQuery("#"+ this.questionId +" tr.ChoiceRow > td:eq(5) > label").html("5");
jQuery("#"+ this.questionId +" tr.ChoiceRow > td:eq(6) > label").html("6");
jQuery("#"+ this.questionId +" tr.ChoiceRow > td:eq(7) > label").html("7");
jQuery("#"+ this.questionId +" tr.ChoiceRow > td:eq(8) > label").html("8");
jQuery("#"+ this.questionId +" tr.ChoiceRow > td:eq(9) > label").html("9");
jQuery("#"+ this.questionId +" tr.ChoiceRow > td:eq(10) > label").html("10");
If you want label numbering for all the radio buttons then you can use the below code,
jQuery("#"+ this.questionId +" tr.ChoiceRow").each(function(){
jQuery(this).find("td:eq(1) > label").html("1");
jQuery(this).find("td:eq(2) > label").html("2");
jQuery(this).find("td:eq(3) > label").html("3");
jQuery(this).find("td:eq(4) > label").html("4");
jQuery(this).find("td:eq(5) > label").html("5");
jQuery(this).find("td:eq(6) > label").html("6");
jQuery(this).find("td:eq(7) > label").html("7");
jQuery(this).find("td:eq(8) > label").html("8");
jQuery(this).find("td:eq(9) > label").html("9");
jQuery(this).find("td:eq(10) > label").html("10");
});
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.
