I want to disable selected rows in a matrix.
@TomG helped me out on something similar.
However I want to rewrite the code to disable selected rows (say row 1 & 2) in column 1
jQuery(".c4 input[type='text']").prop("disabled",true);
I want to disable selected rows in a matrix.
@TomG helped me out on something similar.
However I want to rewrite the code to disable selected rows (say row 1 & 2) in column 1
jQuery(".c4 input[type='text']").prop("disabled",true);
Best answer by TomG
If the rows aren’t randomized, you can do it by position:
var column1 = jQuery(".c4 input[type='text']");
var disableRows = [1, 2];
jQuery.each(disableRows, function(i,row) {
column1.eq(row-1).prop("disabled",true);
});
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
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.