title: mixing $(this) value in jquery
body: <p>How to prevent mixing values in jquery if i use $(this)? For example:</p>
  
  <pre><code>1: &lt;input type="text" id="in1" class="test"&gt; &lt;br /&gt;
  2: &lt;input type="text" id="in2" class="test"&gt; &lt;br /&gt;
  
  &lt;div id="ppp"&gt; &lt;p class="show" id="one"&gt;onevalue&lt;/p&gt; &lt;p class="show" id="two"&gt;twovalue&lt;/p&gt;&lt;/div&gt;
  
  #ppp {
      display: none;
  }
  
  $(".click").click(function(e) {
  
      $("#block").show();
  
      var current = $(this);
  
      $(".show").click(function(e) {
          current.val($(this).attr("id"));
      });
  });
  </code></pre>
  
  <p>live example - <a href="http://jsfiddle.net/VmXU9/59/" rel="nofollow">http://jsfiddle.net/VmXU9/59/</a></p>
  
  <p>If i clicked in 1 input show me "onevalue" and "twovalue". If i clicked "onevalue" or "twovalue" that in 1 input appears id of "onevalue" or "twovalue". This is good, but if i additionally clickes 2 input and choose "onevalue" or "twovalue" that ID of "onevalue" or "twovalue" appears in 1 input and 2 intput. Should be only in one - in last clicked. How can i it make?</p>
  
  <p>Thanks!</p>