﻿ $(document).ready(function(){
 
$('#searchtab div').hide(); // Hide all divs
$('#searchtab div:first').show(); // Show the first div
$('#searchtab ul li:first').addClass('active'); // Set the class of the first link to active
$('#searchtab ul li a').click(



function(){ 
//When any link is clicked
$('#searchtab ul li').removeClass('active'); // Remove active class from all links
$(this).parent().addClass('active'); //Set clicked link class to active
var currentTab = $(this).attr('href'); // Set variable currentTab to value of href attribute of clicked link
$('#searchtab div').hide(); // Hide all divs
$(currentTab).show(); // Show div with id equal to variable currentTab
return false;
});
});


