Hi Friends,
Here I come with my latest Javascript plugin(no jQuery! plain Javascript!!) it helps to get or set current caret position (cursor location) in textarea/input, to get selected value under textarea/input and replace selected value.
Why?
Sometimes we need to replace text selected under textarea or input with another text or wrap selected text with tags. There is no such cross browser solution available, this plugin helps to do so.
Check out demo page for more information.
Live demo:
(Click on the links below, will be opened in new browser tab/window)
There are more details on demo page, how to setup and use to make it fit in your requirements.
Download Plugin:
textarea.properties.min.js (Minified) ~ 2Kb
textarea.properties.packed.js (Packed) ~ 2Kb
textarea.properties.js (Uncompressed) ~ 3Kb
Please let me know if you find any problem or any help required. Provide your feedback in comments or contact me via GMail/GTalk.
Thanks,
Vipul Limbachiya

February 10th, 2010 at 4:37 pm
Thanks for this! I
February 12th, 2010 at 1:44 pm
I tried to get the RSS Feed for this website but it is not properly showing up in Google Chrome. Any suggestions?