Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
... var currentTime = new Date(); // returns the year (four digits) var year = currentTime.getFullYear(); // Insert selects $('.answer-item.answer_cell_X002', thisQuestion).addClass('with-select').append('<select class="inserted-select form-control list-question-select">\ <option value="">...</option>\ <option value="'+year+'">'+year+'</option>\ <option value="'+(year-1)+'">'+(year-1)+'</option>\ <option value="'+(year-2)+'">'+(year-2)+'</option>\ <option value="'+(year-3)+'">'+(year-3)+'</option>\ <option value="'+(year-4)+'">'+(year-4)+'</option>\ <option value="'+(year-5)+'">'+(year-5)+'</option>\ </select>'); ...
$('#question{QID} .answer_cell_X003 input[type="text"]').inputmask({ 'regex': '[1-9][0-9]?', 'placeholder': '_', 'removeMaskOnSubmit': false, 'rightAlign': true, });
Please Log in to join the conversation.