title: Trying make a terminal shell like webpage, why this dosen't work?
body: <p>I'm trying to make a terminal shell like webpage,type something in text input field then hit enter to print it out then scroll the prompt, I have no idea what exactly to do, so this just a very easy test, but why dosen't it work?
  <a href="http://jsfiddle.net/paopaomj/qGw4Q/1/" rel="nofollow">http://jsfiddle.net/paopaomj/qGw4Q/1/</a>
  I write it on jsfiddle, not sure how to post embeded code on stackoverflow, so code below already has those javascript and jquery loading statement.
  I'm such a newbie at coding, so thank you for your help.</p>
  
  <p>html:</p>
  
  <pre><code>&lt;body&gt;
  &lt;div id="output"&gt;&lt;/div&gt;
  &lt;div id="input"&gt; 
      &lt;span&gt;root@host&lt;/span&gt;&amp;nbsp;
      &lt;input type="text" id="command" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>javascript:</p>
  
  <pre><code>    $("command").keyup(function (e) {
      if (e.keyCode == 13) {
          submit();
      }
  });
  
  var submit = function () {
      var command = document.getElementById("command").value;
      var outputel = document.getElementById("output");
      var div = document.createElement("div");
      div.innerHTML = "root@host " + command;
      outputel.appendChild(div);
  };
  </code></pre>