You can read more about this technique on my blog entry Attaching mouse events to a disabled input element.