live and load function

live and load function

I hope somebody can help me. 
I want to load a new page into a <section id="content"></section> but when this page is a certain name.html I also want to load a navigation.html in a <div id="sidebar"></div>
I want to use live because I have some css settings for the #sidebar. 

I tried this:
$(ul li a).on('click', function(e){
      e.preventDefault();
      var url=$(this).attr('href');
      if (url="name.html"){
      $('#content').load(url);
      $('#sidebar')live('load', 'includes/sidebar1.html');
} else {
        $('#content').load(url);
      $('#sidebar')live('load', 'includes/sidebar2.html');
}
});

But this is not working. 
Please help me

Geropmac