User:Tegnosis/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; });   $("#europeButton").click(function{ $("#europeCountries").show; $("#northAmericanCountries").hide; $("#southAmericanCountries").hide; $("#southPacificCountries").hide; });   $("#southPacificButton").click(function{ $("#southPacificCountries").show; $("#northAmericanCountries").hide; $("#southAmericanCountries").hide; $("#europeCountries").hide; });   $("#mexico").click(function{ $("#mexicoStates").show; $("#northAmericanCountries").hide; }); });