title: Click on an LI and send that value to an input as the value with Jquery
body: <p>I am trying to click on an LI, and have the value of that li sent to a search box input as the value to search for.  </p>
  
  <p>I can strip the class from the LI but do not know how to strip out the LI itself. I am probably going at this completely wrong. </p>
  
  <pre><code>$(function(){
  //var art = $('li.inliner').val();
  $('li.inliner').on('click',function(){// select the artist from the ul
  $( this ).clone() //copy it
  .removeClass("inliner") //remove the inliner class
  //remove the li from the clone??
  .appendTo( "input(value)?? ); //this needs to be inserted into the search input as the value
    });
  })
  </code></pre>
  
  <p>Currently I can send the clicked LI to a div with the class removed, but its still an LI. I also dont know how to make it the input value. Any help is appreciated.</p>