title: How to disable a rich:inputNumberSpinner with javascript
body: <p>In a form Im trying to control components using <code>javascript</code>. But the <code>rich:iputNumberSpinner</code> component can not be disabled or enabled with javascript.</p>
  
  <p>Here is an example of my case:</p>
  
  <pre><code>&lt;SCRIPT language="JavaScript"&gt;
  function typeChange(){
      var element=document.getElementById("form2:hour");
      var element2=document.getElementById("form2:check");
  if(document.getElementById("form2:type").value==1){
      element.disabled=true;
      element2.disabled=true;
      }
  else{
      element.disabled=false;
      element2.disabled=false;
      }
  
  }
  &lt;/SCRIPT&gt;
  
          &lt;h:selectOneMenu id="type" onchange="typeChange()"&gt;
              &lt;f:selectItem itemValue="0" itemLabel="0" /&gt;
              &lt;f:selectItem itemValue="1" itemLabel="1" /&gt;
              &lt;f:selectItem itemValue="2" itemLabel="2" /&gt;
              &lt;f:selectItem itemValue="3" itemLabel="3" /&gt;
          &lt;/h:selectOneMenu&gt;
          &lt;rich:inputNumberSpinner id="hour" /&gt;
          &lt;h:selectBooleanCheckbox id="check" /&gt;
  </code></pre>
  
  <p>Waiting for your help</p>