$('#map').usmap({ 'stateStyles': { fill: '#eee', 'stroke-width': 1, 'stroke' : '#999' }, 'stateHoverStyles': { fill: '#ffdd00' }, 'stateSpecificStyles': { 'AK' : {fill: '#333'}, 'WA' : {fill: '#333'}, 'OR' : {fill: '#333'}, 'CA' : {fill: '#333'}, 'NV' : {fill: '#333'}, 'ID' : {fill: '#333'}, 'IN' : {fill: '#333'}, 'UT' : {fill: '#333'}, 'AZ' : {fill: '#333'}, 'ND' : {fill: '#333'}, 'NM' : {fill: '#333'}, 'CO' : {fill: '#333'}, 'WY' : {fill: '#333'}, 'MT' : {fill: '#333'}, 'TX' : {fill: '#333'}, 'WI' : {fill: '#333'}, }, 'stateSpecificHoverStyles': { }, 'labelBackingHoverStyles':{ fill: '#ffdd00' }, 'click' : function(event, data) { window.location = 'tent-trailer-dealers_' + data.name + '.php'; } }); $('.state-select').change(function() { var option = $('.state-select :selected').val(); if (option){ window.location = 'tent-trailer-dealers_' + option + '.php'; } }); });