I have a simple txt input field:
<input type="text" name="" value="http://google.com" />
If i click inside the input, i want to select the text. This part is fine with this:
$('input.highlight').click(function(){
$(this).focus().select();
return false;
});
But, i want to disable the editing also. If i put a return false; to the keydown event, the ctrl+c is not working. If i put disabled="disabled" to the input, the select is not working.
Any idea? Thanks.