Sreekanth Reddy

Sreekanth Reddy

  • 352
  • 4.8k
  • 420.6k

SelectionStart and SelectionEnd Not working in Internet Expl

Oct 28 2015 1:35 AM
function KeyDownHandler(e,elem) {
var event = window.event;
if (event === undefined) {
event = e;
}
var txtElement = elem.id;
var txtElementText = GetTextElementValue(elem.id);
 
var start = txthome.selectionStart;
var end = txthome.selectionEnd;
 
Internet Explorer is not able to retrieve start & end VALUES.
Where as other browsers are working.
Please share your answers friends.
Thank you.