JQUERY UI TABS NO PRELOAD FIRST TAB

Hello,

I have several jqueruyi tabs loading remote content :
<li><a href="page1.html">bla bla bla</a></li>
<li><a href="page2.html">xxxxxxx </a></li>

where page1.html and page2.html have the remote content.

I load the tabs with :
$(function() {
      // *** Ajax load
      $( "#tabs" ).tabs({
      });
});

I use a simple :

$("#tabs").tabs("select" , 1);

to initially load the page on the second tab. It works OK but my problem is that I realized that the first tab is still loaded, even if this does not show. This is a big problem because the corresponding page has treatments.
So the question is how not to hiddenly load the first tab as this is done ?
Thanks for help



javilmerAsked:
Who is Participating?
 
leakim971Connect With a Mentor PluritechnicianCommented:
what about :

$( "#tabs" ).tabs({ "selected":-1 });
0
 
javilmerAuthor Commented:
Hello,
No, it still loads first tab
0
 
javilmerAuthor Commented:
sorry it does work :)
thanks for help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.