﻿ $(document).ready(function(){
 
$('#tabs_Calculators div').hide(); // Hide all divs
$('#tabs_Calculators div:first').show(); // Show the first div
$('#tabs_Calculators ul li:first').addClass('active'); // Set the class of the first link to active
$('#tabs_Calculators ul li a').click(function(){ //When any link is clicked
$('#tabs_Calculators ul li').removeClass('active'); // Remove active class from all links
$(this).parent().addClass('active'); //Set clicked link class to active
if($(this)[0].hash=="#tab-StampDutyCalculator")
{
    ClearEMIFields();
}
else if($(this)[0].hash=="#tab-EMICalculator")
{
    ClearStampDutyFields();
}
var currentTab = $(this).attr('href'); // Set variable currentTab to value of href attribute of clicked link
$('#tabs_Calculators div').hide(); // Hide all divs
$(currentTab).show(); // Show div with id equal to variable currentTab
return false;
});
});
