Inspect and check the class for input text and try this:
jQuery('.InputText').css('min-height','30px');
jQuery('.InputText').css('max-width','160px');
jQuery('.InputText').css('margin-top','0px');
jQuery('.InputText').css('height','30px');
Inspect and check the class for input text and try this:
jQuery('.InputText').css('min-height','30px');
jQuery('.InputText').css('max-width','160px');
jQuery('.InputText').css('margin-top','0px');
jQuery('.InputText').css('height','30px');
Thanks for your comment. Upon inspection it looks like the class changed to text-input for new survey experience.
Tweaking the jquery .css you provided does alter the dimensions of the text box but the other jquery line I originally posted altered to text-input still does not appear to be doing anything.
Qualtrics.SurveyEngine.addOnload(function()
{
jQuery('.text-input').css('min-height','30px');
jQuery('.text-input').css('max-width','160px');
jQuery('.text-input').css('margin-top','0px');
jQuery('.text-input').css('height','30px');
jQuery('#'+this.questionId+' .text-input').attr('maxlength','10');
});
@b.dylan ,
Can you try without questionid, simply
jQuery('.text-input').attr('maxlength','10');
@b.dylan ,
Can you try without questionid, simply
jQuery('.text-input').attr('maxlength','10');
Yes, that works, thank you so much!