Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want when a page is loaded a specific tab should be selected and its content should be displayed like in my case "my profile" content should be visible

What I have tried:

i have tried following code


$(function() {
$('#tabs').tabs({active:1});

});




<?php

@$opt = $_GET['option'];
if($opt=="")
{
//error_reporting(1);
}
else{



switch($opt)
{
case 'tr':
include('tr.php');
break;
case 'mbm':
include('mbm.php');
break;
case 'mp':
include('mp.php');
break;
case 'cop':
include('cop.php');
break;
}
}

?>
Posted
Comments
SrikantSahu 20-Mar-17 15:57pm    
Are you facing problem in jQuery?

$('#tabs').tabs('select', 1);
This should work.
Ideally you can load all your pages load when the main page loads or on change of tabs pull out the phone pages
sonal form india 20-Mar-17 23:45pm    
HI SrikantSahu, i tried your code but its not working, i am not getting the content for my profile

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900