﻿/*
Javascript to Get or set current Caret position (cursor location) in textarea/input, to get selected value under textarea/input and replace selected value.
author: Vipul Limbachiya
http://vipulilmbachiya.com
*/

/* 
 * This program is free software. It comes without any warranty, to the extent permitted by applicable law. 
 * You can redistribute it and/or modify it without any terms.
 * Save developers, use Firefox http://firefox.com
*/

/*
    $textArea.GetCaretPos(element) -> Returns no as current cursor position at characters
    
    $textArea.SetCaretPos(element, position) -> Sets cursor position to mentioned character index
    
    $textArea.GetSelectedVal(element) -> Returns text selected value
    
    $textArea.ReplaceSelectedVal(element,text) -> Replaces selected text with text supplied
*/



