2009-09-10 7 views

Répondre

0

Cela devrait vous aider à démarrer:

<script type="text/javascript"> 
     $(function() { 

     //this sets up the tabs 
     $("#theTabs").tabs(); 

//this attaches the new tab functionallity to the link 
      $("#AddTabLink").click(function() { 
       $("#theTabs").tabs("add", "the url you want to load ajaxly", "The New Tab title"); 
      } 
      ); 

     }); 
    </script> 


and this is the link that will have the addtab functionality applied to it. this could go on an existing tab, or somewhere else on the page. 

<a href="#" id="AddTabLink">Click Here</a> 
Questions connexes