title: jquery onclick set paragraph/textbox value
body: <p>I have unordered list of links and i am trying to get the clicked link text.
  So when i click on some link i would like to display in paragraph or textbox at the bottom of my list text that is cliked.
  So if I have something like this:</p>
  
  <ol>
  <li>item1</li>
  <li>item2</li>
  <li>item3</li>
  </ol>
  
  <p>If i click on item2 i would like to get it like: "You just clicked:item2 "</p>
  
  <p>And i manage that with this:</p>
  
  <pre><code>jQuery(function () {
      $('a').click(function () {
          alert('Text is: ' + $(this).text());
      });
  });
  </code></pre>
  
  <p>But that is displaying an alert message. then i do this:</p>
  
  <pre><code>jQuery(function () {
      $('a').click(function () {
          var name = $(this).text();
          $("p#selector").text(name); 
          $("input#textbox").val(name);
      });
  });
  </code></pre>
  
  <p>And it works it send text value of a link to paragraph but it disappear really fast, it show it about second and it's gone, is there any way to prevent this? To stop it from disappearing?</p>