...

View Full Version : textarea get row index



mariechristine
08-07-2006, 01:47 PM
i have a textarea and i need to know which row the user is now entering in the text area. I need to know the row index and the total number of rows the user wrote. How do i do that?

MikoLone
08-07-2006, 08:38 PM
I am not sure how to get which row you are on but I do know how to get where the cursor is. IE may have some functions that do that.

This link will show you how to get the cursor location.
http://www.alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript/

cheers,

Michael



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum