title: How to disable/enable JSF input field in JavaScript?
body: <p>I have an inputField, or some other tag , that I want to be disabled unitl user clicks on it.</p>
  
  <p>Something <a href="http://jsfiddle.net/RXqAm/170/" rel="nofollow">like this</a>, but I cant get it to work in JSF.</p>
  
  <pre><code>$("div").click(function (evt) {
      $(this).hide().prev("input[disabled]").prop("disabled", false).focus();
  });
  </code></pre>
  
  <p>I add disabled=true" to my input field, and div value set on &lt; h:form > (all parent tags in this case only one), something like j_idt13 and div of input field, so "div" value looks like <strong>j_idt13:inputID</strong></p>
  
  <p>Can someone help me with jQuery solutin?</p>
  
  <p>I wold like to know can it be done in JSF, and how.</p>