0

I am trying to use jquery with blackberry widget on a OS6 device. Widget compiler does not seem to recognize .hide() and .show() (css display properties) Is there a workaround to this?

$(document).ready(function(){ 
    $("a").click( function() 
    { 
        ShowAPage(this.id)  
    });

    function ShowAPage(pageToShow){     
        $("div.page").hide();
        targetPage =  "div#" + pageToShow ;     
        $(targetPage).show();           
    }

});
bob
  • 85
  • 1
  • 2
  • 5

1 Answers1

0

Try this:

$("div.page").css("display", "none"); //This hides

and:

$(targetPage).css("display", "block"); //This shows

Hope this helps. Cheers

Edgar Villegas Alvarado
  • 18,204
  • 2
  • 42
  • 61
  • thanks, i am trying it, but my guess that it won't work either... Jquery Mobile is able to do it. I wonder what technique they use. – bob Jul 04 '11 at 03:07
  • No it does not work. There seem to be issues with Blackberry tool – bob Jul 04 '11 at 11:26