Solved
InputText attributes for textual Matrix Table
Have a matrix table for text entry that is 2x2 for entering results of testing 2 samples 2 times. Many users will be using mobile devices so we want to set the InputText attribute to 'number'.
For a single text entry the code (thanks to TomG) is:
jQuery("#"+this.questionId+" .InputText").attr('type', 'number');
This does not work for the 2x2 MT.
Have tried the following with all 4 of the addresses enumerated (1~2, 2~1, 2~2):
jQuery("#"+this.questionId+"#1~1"+" .InputText").attr('type', 'number');
jQuery("#"+this.questionId+"~1~1"+" .InputText").attr('type', 'number');
Been searching for about 4 hours without finding anything.
thanks
Best answer by Anonymous
Hello @WaterSampler ,
Use the below code:
var input = jQuery("#"+this.questionId+" input[type='text']");
input.attr('type', 'number');
input.on('input', function() { this.value = this.value.replace(/e/g, ''); });
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
