title: JavaScript Var handling inside function
body: <p>My Code: </p>
  
  <pre><code>$("img.rollover-neu").hover (
          function() { 
              var org_src = $(this).attr('src');
              this.src = $(this).attr("data-rolloverImage"); }, 
          function() { alert("h"+org_src); /*this.src = $(this).attr('src', org_src);*/ } 
      );
  </code></pre>
  
  <p>On Mouse-enter i save the src of an image inside a var "org_src". On Mouse-Out it should change the src back. Unfortunately the var "org_src" is empty at the mouse-out function. Any help why?</p>
  
  <p>Thanks</p>