User:Ccsmith/common.js

$(document).ready(function{ $("#northAmericaButton").click(function{ $("#northAmericanCountries").show; $("#southAmericanCountries").hide; $("#europeCountries").hide; $("#southPacificCountries").hide; }); $("#southAmericaButton").click(function{ $("#southAmericanCountries").show; $("#northAmericanCountries").hide; $("#europeCountries").hide; $("#southPacificCountries").hide; }); $(document).ready(function{ $("#europeButton").click(function{ 	 $("#europeCountries").show;    $("#northAmericanCountries").hide;    $("#southAmericanCountries").hide;    $("#southPacificCountries").hide;  }); $(document).ready(function{ $("#northAmericaButton").click(function{ $("#northAmericanCountries").hide; $("#southAmericanCountries").hide; $("#southPacificCountries").show; $("#europeCountries").hide; }); });