- Posts: 111
- Thank you received: 20
Ask the community, share ideas, and connect with other LimeSurvey users!
1235 | This is text with |
exactly here | 42 |
<script type="text/javascript"> jQuery(document).ready(function() { jQuery(document).bind('keypress', function(e){ if (e.which == 13) return false; // kills enter-key event, can be replaced by any key code }) }); </script>
Try this:...the disadvantage of this solution is: canceled keys are canceled for the whole question page or all questions if more than one is visible at the same time...
<script type="text/javascript"> jQuery(document).ready(function() { jQuery('#question{QID} textarea').bind('keypress', function(e){ if (e.which == 13) return false; // kills enter-key event, can be replaced by any key code }) }); </script>