Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
118
rated 0 times [  121] [ 3]  / answers: 1 / hits: 38193  / 11 Years ago, mon, december 30, 2013, 12:00:00

I code 1 page php as:



<link rel=stylesheet href=http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css>
<script src=http://code.jquery.com/jquery-1.9.1.js></script>
<script src=http://code.jquery.com/ui/1.10.3/jquery-ui.js></script>
<link rel=stylesheet href=/resources/demos/style.css>
<script>
$(function() {
$(#tabs).tabs();
});
</script>
<?php

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
?>
<div id=tabs >
<ul class=nav nav-tabs>
<li class=><a href=#tabs-1>Resize Image</a></li>
<li class=active><a href=#tabs-2>Rotation Image</a></li>
<li class=><a href=#tabs-3>Crop Image</a></li>

</ul>
<div id=tabs-1></div>
<div id=tabs-2></div>
<div id=tabs-3></div>
</div>


I had set tabs-2 active but it alway active tabs-1. Why?
How set active other tab?


More From » php

 Answers
7

try this:



 $(#tabs).tabs({ selected: 2 });


or this:



 $(#tabs).tabs({ active: 2 });

[#73488] Saturday, December 28, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
yamileth

Total Points: 53
Total Questions: 96
Total Answers: 112

Location: England
Member since Tue, Sep 8, 2020
4 Years ago
;