-
Recent Posts
Categories
Blogroll
Tags
Join Me!
Tag Archives: jQuery
Using Variables in JQuery Selectors
If you want to use variables in combination with CSS-style selectors like so: $(“#navigation a.myHomePage, ” + logo).hover(function() { $(“li.home”).addClass(“homeRoll”); }, (function() { $(“li.home”).removeClass(“homeRoll”); }); Make sure your variable homePageImage is written as a string: var homePageImage = “#logo” not … Continue reading