Selecting text on focus using jQuery not working in Safari and Chrome

It’s the onmouseup event that is causing the selection to get unselected, so you just need to add:

$("#souper_fancy").mouseup(function(e){
    e.preventDefault();
});

Leave a Comment