title: Add onclick event to disabled field
body: <p>I am using a form a custom generator. The form is specified in a file, this file gets parsed and HTML elements will be generated by JSF 2.x programmatically, for example HtmlInputText by Apache MyFaces. </p>
  
  <p>In our application we have a readonly user role. For those users we try to make all input options <code>disabled</code>. On <code>input</code> fields we are setting the html <code>readonly</code> attribute, for other elements, which have no <code>readonly</code> attribute like <code>select</code> fields, we are setting <code>disabled</code> attribute. </p>
  
  <p>Unfortunately setting <code>disabled=disabled</code> will inactivate all javascript events too. Now, I need to trigger a javascript-function <code>on click</code> at a disabled option-field. How can I do this? </p>