title: Jquery code to match input value
body: <p>I'm trying to write a jquery code that will match input of user once they enter @ it will show that they key in @.
  With this code am not getting any thing please someone should help me with that?</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;input id="input" value=""/&gt;
  &lt;div id="out"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>Jquery</strong></p>
  
  <pre><code> $(document).ready(function () {
       var value = "@";
       $('#input').keyup(function(e) {
       //$('#input').match(value){
       $('#input').val=(value) {
               //alert('You enter @');
      $('#out').html("You enter @");     
           }
       });
  
   });
  </code></pre>