title: How to convert attr to executable code? (Javascript)
body: <pre><code>&lt;input type="text" name="borderColor" id="myInput"&gt;
  
  var myInput = document.getElementById("myInput");
  
  document.getElementById('selector').style.myInput.name= "(style value)";
  // want to use the .name attr after style here
  </code></pre>
  
  <p>Checked something about <code>eval()</code>, but seems not the right thing. Please help. Thanks a lot!</p>