Variable scope?
Variable scope?
This may be a simple one....
-
$(".single").hover(
function () {
var oldtext = $("#star").text();
$("#star").text("help");
},
function () {
$("#star).text(oldtext);
}
);
Obviously, oldtext is not seen in the hover out action... how do make it visible?
Also, being .single a <li> (part of one of many <ul>), is there a way to get the index number of the ul containing it? The <li> all have the same class (.single)
Thanks!