- Posts: 45
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Yep,tpartner wrote: There is no "readonly" property available for select (dropdown) elements.
If you use the "disabled" property, the data will not be recorded.
<script> $(document).on('ready',function() { var lockit = '{DisableThem.NAOK}'; if (lockit == 'Y') { var currentValue = $("#answer{SGQ}").val(); $("#answer{SGQ} select option").each(function() { if ( $(this).attr('value') != currentValue) { $(this).prop('disabled',true); } } } }); </script>