a href="xn--fiqr16adi7bgnc.xn--dqr445bdw4a.xn--j6w193g">隆鎮,Hacker News,Network Security,Hacker News,1N4148
jQuery Caret Plugin - jQuery Plugins,jQuery plugins

jQuery Caret Plugin


About jQuery Caret (jCaret) Plugin

Handling caret is an important task in providing a user friendly interface for input text interactively.  We can use caret to select text inside a text area to change the default format.  Programmer may want to use the caret highlight part of the content inside a text box to notify the end user for something goes wrong.


Function Specifications

  1. The jQuery Caret (jCaret) Plugin should be able to detect the caret position, i.e. the position of selected text in a "text input box" (input type="text") or "text area" (textarea)
  2. The jQuery Caret (jCaret)  Plugin should be able to detect the content of selected text in a "text input box" (input type="text") or "text area" (textarea)
  3. The jQuery Caret  (jCaret) Plugin should be able to highlight text by specifying starting position, ending position or length of selection in a "text input box" (input type="text") or "text area" (textarea)
  4. The jQuery Caret  (jCaret) Plugin should be able to highlight text by a search string in a "text input box" (input type="text") or "text area" (textarea)
  5. The jQuery Caret  (jCaret) Plugin should be able to highlight text by using regular expression to specify the format of the text in a "text input box" (input type="text") or "text area" (textarea)
  6. The input parameter should support Javascript Object.
  7. The output can be represent as a Javascript Object.

Usages and examples

The usages and examples for jQuery Caret Plugin can be found in the Usage and Examples page of jQuery Caret Plugin .  The following is a list of examples:
A. To obtain the starting position of caret.
B. To obtain the ending position of caret.
C. To obtain the content of selection.
D. To obtain the selection object:.
E. To highlight text by specifying starting and ending position.
F. To highlight text by specifying a position object.
G. To highlight text by specifying a keyword.
H. To highlight text by specifying a regular expression.

A list of online examples can be found in jQuery Caret plugin page in http://www.examplet.buss.hk.


Download the jQuery Caret Plugin

You can download the plugin from the latest versions of jQuery Caret (jCaret) Plugin in the following links: 


Related Resources

License

You may use jQuery Caret (jCaret) Plugin under the terms of MIT License