Software Details:
Version: 1.5.2
Upload Date: 6 Jun 15
Distribution Type: Freeware
Downloads: 63
The plugin works with "textarea" or with "input type=text"
They also must be the first element in a list or set of elements.
Tested with Opera 9.5 (Windows) and Opera 9.6 (Linux), Mozilla Firefox 3.0 (Windows and Linux), Internet Explorer 7, Chrome 2.0 and Safari 4.0. Also works with jQuery 1.4.
Features:
- getSelection - return start, end position, length of the selected text and the selected text. return start=end=caret position if text is not selected;
- replaceSelection - replace selected text with a given string;
- countCharacters - count amount of all characters;
- insertAtCaretPos - insert text at current caret position;
- setCaretPos - set cursor at caret position (1 = beginning, -1 = end);
- setMaxLength - set maximum length of input field. Also provides callback function if limit is reached. Note: The function has to have a number as input. Positive value for setting of limit and negative number for removing of limit.
Requirements:
- JavaScript enabled on client side
- jQuery 1.3 or higher
Comments not found