User:Ccsmith/common.js

/*state or provinces show and hide*/ $(document).ready(function{	/*-united states-*/	$("#UnitedStatesofAmerica").click(function{ $("#UnitedStatesStates").show; }); $(".exitIcon2").click(function{ $("#UnitedStatesStates").hide; }); /*canada provinces---*/ $("#canadianProvinces").click(function{ $("#canadaProvinces").show; }); $(".exitIcon2").click(function{ $("#canadaProvinces").hide; }); /*---country buttons show and hide*/ $("#northAmericaButton").click(function{ $("#northAmericanCountries").show; $("#southAmericanCountries").hide; $("#europeCountries").hide; $("#Australia_OceaniaCountries").hide; $("#africaCountries").hide; $("#asiaCountries").hide; }); $("#southAmericaButton").click(function{ $("#southAmericanCountries").show; $("#northAmericanCountries").hide; $("#europeCountries").hide; $("#Australia_OceaniaCountries").hide; $("#africaCountries").hide; $("#asiaCountries").hide; });

$("#europeButton").click(function{ 	 $("#europeCountries").show;    $("#northAmericanCountries").hide;    $("#southAmericanCountries").hide;    $("#Australia_OceaniaCountries").hide;     $("#africaCountries").hide;      $("#asiaCountries").hide;  }); $("#Australia_OceaniaButton").click(function{ 	 $("#Australia_OceaniaCountries").show;  	 $("#northAmericanCountries").hide;    $("#southAmericanCountries").hide;    $("#europeCountries").hide;      $("#africaCountries").hide;      $("#asiaCountries").hide;  }); $("#africaButton").click(function{ 	 $("#africaCountries").show;  	 $("#northAmericanCountries").hide;    $("#southAmericanCountries").hide;    $("#europeCountries").hide;        $("#asiaCountries").hide; $("#Australia_OceaniaCountries").hide;  }); $("#asiaButton").click(function{ 	 $("#asiaCountries").show;  	 $("#northAmericanCountries").hide;    $("#southAmericanCountries").hide;    $("#europeCountries").hide;        $("#africaCountries").hide; $("#Australia_OceaniaCountries").hide;  }); $(".exitIcon").click(function{	$("#northAmericanCountries").hide;	$("#africaCountries").hide;	$("#southAmericanCountries").hide;	$("#europeCountries").hide;	$("#Australia_OceaniaCountries").hide;	$("#asiaCountries").hide;	}); });