I wish to do something like this:
var showme = false; $(\'#mydatepicker\').datepicker({ beforeShow: function(input, inst) { if(!showme) {
Seems to be the closest I could get too, but I don't really want to have to use setTimeout here, it seems a bit hacky:
var showme = false; $('#mydatepicker').datepicker({ beforeShow: function (input, inst) { if (!showme) { setTimeout(function () { $(input).datepicker("hide"); }, 1); } } });