title: return a variable from .click() javascript function
body: <p>First of all excuse for my weak english, I try to use the following javascript code and I want to return id variable and use it in other function, but it seem does not work correctly and does not return it, can someone help me out writting this</p>
  
  <pre><code>var idcb = $('.box').click(function() {
      var id = $(this).attr('id');
      return id;
  });
  </code></pre>
  
  <p>I want to use var idcb in this function :</p>
  
  <pre><code>$(".hs").click(function() {    
      $(idhs).slideToggle("slow");
          return false;
      });
  });
  </code></pre>