My 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);*/ }
);
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?
Thanks