How to disable datepicker button, based on greyed input field?

How to disable datepicker button, based on greyed input field?


Hi,
I am new to Jquery and using Datepicker based on stable 1.6 version.
I would like to know how I can disable the button (callender.gif) when
the datepicker input field is disabled.
Please let me know what I should do for this.
Thanks in advance.
Puneet