title: How to get the inputText field value by document.getElementById in adf?
body: <p>I want to get the value of an <code>inputText</code> field through <code>document.getElementById</code> in a <code>javascript</code> method in adf. Below is my javascript method. But instead of a specific value i got <code>"undefined"</code> in the alert. How can i get the specific value of an inputText field by <code>document.getElementById</code> in adf ?</p>
  
  <pre><code>    function refresh() {
          try {
              var val = document.getElementById('pt1:flag');
              alert(val.value);
          } catch (e) {
              alert(e);
          }
      }
  </code></pre>