To load a page with a redirect you can use the link below. (This is to load tab2 of course!)
1 2 3 |
/admin.php#tabs-2 |
this will load the second tab as it counts from 0
1 2 3 |
$("#tabs" ).tabs( { active: 1 } ); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script> <script> $(function() { $( "#tabs" ).tabs(); }); </script> </head> <body> <div id="tabs"> <ul> <li><a href="#tabs-1">ONE</a></li> <li><a href="#tabs-2">TWO</a></li> <li><a href="#tabs-3">THREE</a></li> </ul> <div id="tabs-1"> <p>Proin elit arcu, rutrum commodo, vehicula tempus, </p> </div> <div id="tabs-2"> <p>Morbi tincidunt, dui sit amet facilisis feugiat, odio </p> </div> <div id="tabs-3"> <p>Mauris eleifend est et turpis. Duis id erat. Suspendisse </p> <p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra </p> </div> </div> |