function documentReady() { initJSSupport(); initReferenceInput(); } function initJSSupport() { $('.js-support').attr('value', 'true'); } function initReferenceInput() { // enable autoadvance on the form: // focus will be transfered to the next control when the maximum number of characters are entered $('#input-reference').autoAdvance(); }