- Posts: 4
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Can you give a Javascript hint?
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { var qID = 769; var questionInput = '#question'+qID+' input[type="text"]'; $('.comment-container input[type="text"]').keypress(function() { var name = $(this).attr('name'); var selectName = name.replace('comment', '') ; var selectName2 = '#answer' + selectName; var el = $.find(selectName2); $(el).prop('checked', true); }); $(questionInput).autocomplete({ minLength: 2, source: ["Test1","Test2","Test3"] }); }); </script>