How to make a tab active when a page is loaded in PHP/jquery

How to make a tab active when a page is loaded in PHP/jquery

i have used the following code

<script> 
   $(function() { 
   $('#tabs').tabs({active:1}); 
    
   }); 
</script>

<div id="tabs">

<ul>
<li><a href="myprofile.php?option=mp">My Profile</a></li>
<li><a href="myprofile.php?option=mbm">More about me</a></li>
<li><a href="myprofile.php?option=cop">Checkout your peers</a></li>
<li><a href="myprofile.php?option=tr">Test Results</a></li>
</ul>
</div>


<?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;
}
}
?>