Javascript text insertion in textbox.
- by Guru
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