[jQuery] Re: How to get the selected text inside a textarea

2009-02-22 Thread neha toor
visit here for all free stuff and check out our other free sites. http://tinyurl.com/d2t3sh http://tinyurl.com/aej94c http://tinyurl.com/c7khum http://tinyurl.com/aznmhq http://tinyurl.com/bempdf Pastikan Supervisor Anda hadir dalam workshop ini !! Introduction Dalam konteks struktur organisasi po

[jQuery] Re: How to get the selected text inside a textarea

2009-02-22 Thread Frederik Ring
Ok, I did it myself (+ the web). In case anyone is interested: function wrapAsLink(url){ var textarea = document.getElementById("myTa"); var len = textarea.value.length; var start = textarea.selectionStart; var end = textarea.selectionEnd; var sel = textarea.value.substring(start, end); var repla