title: How to assign variable to value attribute in input element?
body: <p>I need to assign variable to <code>value</code> attribute in the <code>input</code> element</p>
  
  <p>Here is my input tag.</p>
  
  <pre><code>&lt;input type="text" id="Name" class="form-control form-control-alternative" placeholder="Usernam" value="myValue"&gt;
  </code></pre>
  
  <p>Here is my variable.</p>
  
  <pre><code>var myValue = document.getElementById('userVal');
  </code></pre>
  
  <p>Anyone, please help me to fix this problem?</p>