SoFunction
Updated on 2025-03-01

Signature box (Textarea) limits the number of text and prompts in time

Signature box (Textarea) limits the number of text and prompts in time

Updated: October 1, 2009 10:18:01 Author:
Only one line of code can limit the number of text input in the text box and give prompts in a timely manner. It is generally common in comments, comments or signature boxes.
When the entered character reaches the limit, you can no longer enter it. If you enter one, one will be deleted by the program. Isn't it interesting?

[Ctrl+A Select all Note:Introducing external Js requires refreshing the page before execution]
  • Textarea
  • Restricted text

Related Articles

  • Solution to block div

    Solutions to block Div ​​drop-down menu by Select
    2008-11-11
  • JS value transfer judgment

    js value transfer judgment...
    2006-10-10
  • js+css makes the text box automatically adapt to the height of the content

    The text box automatically adapts to the height of the content. Friends who need it can refer to it.
    2010-05-05
  • JS checkbox control operation code

    The following method of implementing chckbox selection has more or less some flaws. The specific method is explained in detail in another post
    2008-12-12
  • Create a personalized Select (editable)

    Create a personalized Select (editable)...
    2006-09-09
  • js amount text box implementation code

    js amount text box implementation code, friends who need to process amount input can refer to it
    2012-02-02
  • Enter content in the first input box.textarea automatically gets the value of the first file box javascript code.

    Enter content in the first input box.textarea automatically gets the value of the first file box...
    2007-04-04
  • JS code that invalidates the button for 5 seconds

    Many experts on 51js have implemented a 5-second method to implement buttons. I have sorted out some of them, hoping to help everyone.
    2009-05-05
  • Implementation code for replacing the background style of the select drop-down menu

    Replace the implementation code of the background style of the select drop-down menu. Friends who need it can refer to it.
    2011-12-12
  • JavaScript gets the position in the text box (text/textarea) where the cursor is located

    Move the mouse to get the js code of the position of the cell in the table, test it is compatible with firefox. Friends who need it can refer to it.
    2009-12-12

Latest Comments