I am using jquery 1.8.2, and this is my html:
<input type="text" class=autoSelect" value="TEXT" readonly/>
I wanna be able to select the text on mouseenter, and deselect(blur) on mouseleave evnets, but it dosen't work when i have the readonly attr. Well everything works except the .blur(), both the events is triggered and .select() works fine. i have tried several combinations of:
$('.autoSelect').mouseenter(function () {
$(this).select();
});
enter code here
$('.autoSelect').mouseleave(function () {
$(this).blur();
});
Thanks in advance!