codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Textarea help  maiku_kun at 22:45 on Monday, May 01, 2006
 

I am wondering how when I use Javascript to add text to a textarea, to place the cursor where I want it.

Say I add the text .

I don't want the cursor to go at the end of the tags.

I want it to pop up in betweent he two tags.

How would I code the function to place the cursor there after the user clicks on a button that executes the javascript code.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Access denied error when submit form
•  configuring tooltip code
•  Flex-WPS Development
•  Re: Problem with XML
•  Re: Help !! -- Array Declaration --
•  loading external code
•  submit button
•  SQL stored procedure error
•  Needs Java script help


Recent Articles
What is a pointer in C?
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net


© Copyright codetoad.com 2001-2006