jQueryUI show()/hide() on click() does not work in Firefox 3.6 (Mac)
I use the following code to show/hide divs. It works just fine in Safari/Opera/Chrome. The page loads OK in Firefox (I get my show() effect), but if statement does not work in Firefox 3.6 for Mac. It seems that the jquery ":hidden" selector is busted?
- $(window).load(function(){
- $(".page").hide();
- $("#page1").show('slow');
-
- //handle click
- $("a.nav").click(function() {
- var $source = $(event.target);
- var $myPage = $source.attr("href");
-
- if($($myPage).is(":hidden")){
- //Firefox does not reach here
- //alert("sad fox");
- $(".page:visible").hide('slow');
- $($myPage).show('drop',{direction:"right"},700);
- }
- return false;
- });
- });