Tuesday, March 3, 2009

Javascript: How to set/get cursor position of a textarea

Basically when we want to create an editor like interface then set or get cursor postion is one of the most important task. Here i want to share two cross-browser supported javascript methods which will meet your requirements To Set cursor position into a TextArea & To Get cursor position from TextArea:Get cursor postion using javascript method: function GetCursorPosition(){// HERE txt is the

No comments:

Post a Comment