How do I make the first row of a matrix table (text entry) read only

MikeWMikeW UKCommunity Member, XMPN Member Qubie ✭

How do I make the first row of a matrix table (text entry) read only

I'm using the text entry Matrix Table.

I've used 'Add default choices' to pipe in answers from a previous question into the first row of the table, but I would like to make those answers read only.

Best Answer

  • SurajKSurajK IndiaCommunity Member Sage ✭✭✭
    Accepted Answer

    You can use the below jQuery code to make it read only,

    jQuery('#'+this.questionId+' tbody tr:first').find('input[type="text"]').attr('readonly','readonly')
    

Answers

Sign In to Comment