On ASP:Label control
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
How can i access starting index of selected text in label control using javascript.
kamalnath
-
How can i access starting index of selected text in label control using javascript.
kamalnath
Hope this is useful for you var txt = ''; function getSelText() { var txt = ''; if (window.getSelection) { txt = window.getSelection(); } else if (document.getSelection) { txt = document.getSelection(); } else if (document.selection) { txt = document.selection.createRange().text; } else return; } alert(txt[0])//This line is to get starting index of selected text </x-turndown>