Disabling rows in a matrix | XM Community
Skip to main content

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 inputttype='text']").prop("disabled",true); 

 

@mugheeshay,

If the rows aren’t randomized, you can do it by position:

var column1 = jQuery(".c4 inpututype='text']");
var disableRows = =1, 2];
jQuery.each(disableRows, function(i,row) {
column1.eq(row-1).prop("disabled",true);
});

 


@mugheeshay,

If the rows aren’t randomized, you can do it by position:

var column1 = jQuery(".c4 inpututype='text']");
var disableRows = =1, 2];
jQuery.each(disableRows, function(i,row) {
column1.eq(row-1).prop("disabled",true);
});

 

Legend


Leave a Reply