I would like to make an input box that, when the user selects it, all the text in the box is selected. So I decided to use the select()
function, which is what I would like to achieve. However, it works as I expected on desktop browsers, but not on Safari on the iPad. How to fix the problem? Thanks.
$('#input').click(function(e){
$(this).select();
});