Javascript text insertion in textbox.
Posted
by Guru
on Stack Overflow
See other posts from Stack Overflow
or by Guru
Published on 2010-03-21T11:24:56Z
Indexed on
2010/03/21
11:31 UTC
Read the original article
Hit count: 166
JavaScript
|jQuery
Hello there,
I've got a textbox(id="tb1") and a button(id="btn1").
I want that whenever I click on btn1 a text "hello world" must be inserted in the tb1 at the current position of cursor in text-box.
Please provide me a cross browser solution for this.
Since I'm frosted from some heavy extra ordinary links so it'd be better to post a function considering the current scenario.
Thanks, Guru
© Stack Overflow or respective owner