title: Add a row to a table in Javascript that contains input classes
body: <p>Im trying do this basically:</p>
  
  <pre><code>    var tr = document.createElement("tr");
      var td = document.createElement("td");
      td.appendChild(document.createTextNode('&lt;input class="param" type="text" name="dummy" value="fred"/&gt;'));
      tr.appendChild(td);
  </code></pre>
  
  <p>but it just displays the input... as normal text, how do I insert it so that it works as i require..?</p>
  
  <p>im guessing its the createTextNode that needs to be changed?</p>
  
  <p>Cheers</p>