title: How to get the Input <input> text element value to <li> element using javascript and jquery
body: <p>When the user click on the input check box the element value from inside the element copied to another place named with item list. </p>
  
  <p>Now I want to add an input text field and want to get the value of this field to the same place named with item list.</p>
  
  <pre><code>&lt;!--  Input text field --&gt;
      &lt;input class="item" type="text" style="cursor: pointer;" value=" " &gt;
  
  
    &lt;!--  Item List --&gt;
    &lt;div id="grocery-list"&gt;
    &lt;h3&gt;Item List&lt;/h3&gt;
    &lt;ul&gt;
      &lt;li class="empty"&gt;Empty&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Here is <a href="http://jsfiddle.net/waqasadil/7HQDK/105/" rel="nofollow">My Fiddle</a> for better understanding.</p>
  
  <p>Thanks in advance.As I am new here and if I have made any mistake in this post. Please correct it</p>