June 21, 2024

MoDCore

Welcome to the core

Restrict the text length in a text box

Confirmit – In the java script tab of an open text question –

Change the part in bold to your question name and the length of the field.

$(document).ready(function(){
var pageCounter = 0;
var countEmpties = 0;
$(‘input[id*=”qnr_unrecog_tag“]’).attr(‘maxlength’,’5‘);
});

 

 

Copyright © All rights reserved. | Newsphere by AF themes.