[jQuery] jQuery ready() not firing when page anchor in URL changes

2009-08-20 Thread bill123
It looks like jQuery's ready() function doesn't fire when the Back button is used if only the page anchor location in the URL changes. Example: Say you go to here http://mywebsite.com/#test1 then here http://mywebsite.com/#test2 and then use the Back button to go back to here h

[jQuery] Select class="class1 class2" using jQuery

2009-03-18 Thread bill123
I need to select an element like this: and I've found that both of the following work: $(".class_a").filter(".class_1").css("background-color", "red"); $(".class_a.class_1").css("background-color", "red"); The first one makes sense and is documented on the website. But the secon