When you disable the input, use .datepicker( 'disable' ) as well to disable the datepicker. Conversely, use .datepicker( 'enable' ) to re- enable it.
Hth, Dave On Nov 19, 2:57 am, MarjaR <[email protected]> wrote: > 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? -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=.
