title: How to change h:outputText value by JavaScript?
body: <p>I already tested with 2 inputText, It runs well
  for example</p>
  
  <pre><code>var tdate = document.getElementById('txtDate');    //h:inputText
  var tdt = document.getElementById('txtDateTime');  //h:inputText
  
  tdate.onchange = function(){
    tdt.value = tdate.value;
  };
  </code></pre>
  
  <p>How can I change the value of " tdt " - h:outputText?</p>
  
  <pre><code>var tdate = document.getElementById('txtDate');    //h:inputText
  var tdt = document.getElementById('txtDateTime');  //h:outputText
  </code></pre>