title: jquery: passing variables in hover() function?
body: <p>Can I pass a variable in hover()?</p>
  
  <p>As in the script below, I don't want to declare the same variable twice <code>var target = xxx</code> and I don't want to make this variable a global <code>target = xxx</code> bcos I have other function using this variable name - target.       </p>
  
  <pre><code>   $('.image-profile').hover(function () {
  
          var target = $('.button-change-image-profile',this);
          target.show();
  
      },function () {
  
          //var target = $('.button-change-image-profile',this);
          target.hide();
  
      });
  </code></pre>
  
  <p>So I tried to pass the var like this  <code>},function (target) {</code>, of course it is wrong, but any other method to pass this var?</p>
  
  <p>thanks.</p>