I have the following jQuery code (similar to this question) that works in Firefox and IE, but fails (no errors, just doesn\'t work) in Chrome and Safari. Any ideas for a wo
$('#randomfield').focus(function(event) { setTimeout(function() {$('#randomfield').select();}, 0); });