littlefat Posted February 24, 2006 Share Posted February 24, 2006 In my project, I really need to get the start position and the end position of the part of text that the user selects in a textfield or textarea of a form. One JavaScript funtion I write needs to know these two attributes to continue working. To get the position of a cursor in the textfield will be also useful. Anyway, I find DOM doesn't support this at all. Are there any other ways or tricks to get it? Thanks very much! Link to comment Share on other sites More sharing options...
littlefat Posted February 28, 2006 Author Share Posted February 28, 2006 anyway, I succeeded in finding a good way on Internet. It's here: http://weblogs.asp.net/skillet/archive/200.../24/395838.aspxCreated by Scott Van Vliet.it's a very efficient way of solving similar problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now