php - Stop jqueryUI Tab 0 from loading by default
I can not find a solution to a simple problem: when all myjqueryUI Tabs
are set to beajax
populated, then tab 0 is loaded by default every time I open the page... but I want the default tab to be tab 2. It can be accomplished with setting active property to tab id, but if I useactive : 2
in tabs init call, it first fires ajax request for tab 0, aborts it and then fires request for tab 2... I want to avoid that ajax request for tab 0. How can I do that in HTML+PHP environment?
Answer
Solution:
Try selected : 2
http://ui-dev.jquery.com/demos/tabs/#option-selected
and and older thread
How to set a default tab with Jquery UI
Answer
Solution:
Try this, Add following line in your ajax file. (where you send your result to your main file)