0

Please go to my FIDDLE. I want to hide that Jpanel after load the page. How can I do that?

here is the code from FIDDLE.

JQuery

$(document).ready(function () {
   var jPM = $.jPanelMenu({
      menu: '#menu',
      trigger: '.menu-trigger',
      duration: 300
   });
   jPM.on();

   $(".menu").click(function(){
      var url = $(this).attr("link");
      alert(url);
      $( "#contents" ).load(url+" #area");
  });
});
4

1 回答 1

0

Have you tried this:

$(document).ready(function () {
  var jPM = $.jPanelMenu({
   menu: '#menu',
   trigger: '.menu-trigger',
   duration: 300
  });
  jPM.on();

   $(".menu").click(function(){
   var url = $(this).attr("link");
   alert(url);
   $( "#contents" ).load(url+" #area");
   jPM.close();//Add this line

   });
 });
于 2014-04-20T13:14:13.293 回答