0 Replies Latest reply on Jan 29, 2009 1:13 AM by Kathy Zhu

    how to enable/disable inputNumberSpinner from javascript?

    Kathy Zhu Newbie

      I tried to enable/disable inputNumberSpinner form js, but no luck so far.
      I tried the following, none worked.

      - document.getElementById('mySpinner').disabled = false;
      - $('mySpinner').firstChild.firstChild.firstChild.firstChild.disabled = false;
      - $('mySpinner').firstChild.firstChild.firstChild.firstChild.
      removeAttribute('disabled');

      I can get the value of the spinner from
      $('mySpinner').firstChild.firstChild.firstChild.firstChild.value