I have a textarea with class 'test', and a 'click' event to set selection range(using setselectionRange()).In IE, After adding 'setSelectionRange' method in 'click' event, highlighting text on double click is broken. Please find the code below:
$(document).ready(function(){
$(".test").click(function(event){
event.target.setSelectionRange(event.target.selectionStart, event.target.selectionEnd);
});
});
Can someone suggest a workaround for this issue?