...

View Full Version : Add text to current selection



Killermud
05-14-2009, 08:35 PM
I have a function that will add text to the end of my text box. I want to be able to have the text added where it is currently selected.

My current code is :


function smilie (smilie) {
var detail = document.form1.detail;
detail.value += smilie;
detail.focus();
return;
}

Philip M
05-14-2009, 08:45 PM
Have a look at:-

http://www.codingforums.com/showthread.php?t=159236



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum