I am setting the focus on a certain input field when loading a page using the following line:
$(\'#myInputID\').focus();
Is there a way th
If you have readonly attribute, blur by itself would not work. Contraption below should do the job.
readonly
$('#myInputID').removeAttr('readonly').trigger('blur').attr('readonly','readonly');