[jQuery] Appending, loading and variables
I have the following code:
$("dt a").click(function(){
$("dt a").removeClass("selected");
$("li a").removeClass("selected");
$("dd:visible").slideUp("slow");
$(this).parent().next().slideDown("slow");
$(this).addClass("selected");
/* $(this).attr("href").append("&js"); */
/*var newHref = "content.php?page=3&js";*/
/* $("#loadcontent").load(newHref); */
return false;
});
Sadly it's breaking starting from where I commented it - any idea why?
TIA