Disable DatePicker icon trigger when date textbox is disabled
In my .Net web application, I'm using a jQuery DatePicker with an icon
trigger like this:
$('#" & wsDateBox.ClientID & "').datepicker({showOn: 'button',
buttonImage: '" & ResolveClientUrl("~/wsUserControls/images/
icon_16x_calendar.gif") & "', buttonImageOnly: true, onSelect: function
() {}, changeMonth: true, changeYear: true});
Sometimes the textbox is disabled, and then I want the icon trigger,
and thus the DatePicker, to be disabled as well so the DatePicker
can't be launched.
How do I accomplish that?
--