Only want DatePicker to fire is box isn't readonly
So i have a textbox like so
<input type="text" id="Date1" class="Date" readonly="readonly" />
Wired up like so
$("input.Date").datepicker({
beforeShow: function(t) {
if ($(t).attr("readonly") == true) { return false; }
}
})
I have some outside functionality that changes the readonly state of
said textboxes
My hoping was that "beforeShow" allowed me to stop the picker from
showing (kind of like the way the UI Tabs do)
Any other suggestions? Ones that preferably work, heh heh
I was messing around with .datepicker("disable") as well, with little
luck