How to disable/enable custom click event for an img element in JavaScript
<p>I have an ASP.NET datepicker control (no source available ) which produces an image element, which when clicked shows a calendar. I want to disable or enable on demand the image through JavaScript. When I added the 'disabled' attribute to the img element, some script in the page always goes in a busy state and the page never finishes rendering. My guess the disabled attribute is causing a conflict in some way.</p>

<p>My next attempt now is to disable the custom click event which the ASP.NET control adds unoptrusively. How do I disable the click event? How do I re-enable it so that the img works back as normal. I am also using jQuery 1.4.</p>
