- Posts: 125
- Thank you received: 3
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Apply some classes $('tr.subquestion-list td.answer-item:last-child', thisQuestion).addClass('last-column-item'); // Insert the datepickers $('.last-column-item input[type="text"]', thisQuestion).datepicker({ dateFormat: "dd/mm/yy" }); // Fix up the datepicker position $('.last-column-item input[type="text"]', thisQuestion).on('click focus', function() { $("#ui-datepicker-div").position({ my: "left top", at: "left-3 top-3", of: $(this) }); }); }); </script>