Is there a way to ensure that users type within a specific area with formatting and returns in a textarea element? I'm looking for a solution that limits overflow and ensures users stay within the designated area. How can this be achieved?
I am working with cakephp as my framework, giving me access to html, css, php, and js. Which of these languages can help me accomplish this task?
This is the specific textarea element I am currently dealing with:
<textarea name="ch_text" id="ch_text" rows="8" tabindex="20"></textarea>
I have attempted to add a cols
property and set wrap="true"
, but neither has solved the issue of limiting user input within the textarea boundaries. Is there a way to set restrictions on height/width to prevent exceeding these limits?