SyntaxFix
Write A Post
Hire A Developer
Questions
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');