поставить класс в каждом выпадающем списке
скажем, например, на вашем HTML
<select id="input_13" class="myDropDownClass"/>
<option name="box1" value="Value1">Display Text1</option>
<option name="box2" value="Value2">Display Text2</option>
<option name="box3" value="Value3">Display Text3</option>
</select>
<select id="input_6_34" class="myDropDownClass">
<option name="box1" value="Value1">Display Text1</option>
<option name="box2" value="Value2">Display Text2</option>
<option name="box3" value="Value3">Display Text3</option>
</select>
<input id="map_change_button" type="submit"/>
тогда на вашем jquery сделайте это
// Create a function
function ChangeMap() {
var geocoder = new GClientGeocoder();
var address;
if ( !jQuery("#map_search").val() ) {
address = jQuery("#input_13 option:selected").text() + ", " + jQuery("#input_6_34 option:selected").text();
}
else {
address = jQuery("#map_search").val();
}
if ( geocoder ) {
geocoder.getLatLng(
address,
function(point) {
if ( !point ) {
alert(address + " not found");
} else {
map.setCenter(point);
marker.setPoint(point);
marker.show();
map.setZoom(13);
//jQuery("input#wp_geo_latitude").val(point.lat());
//jQuery("input#wp_geo_longitude").val(point.lng());
}
}
);
}
return false;
}
// call the function ChangeMap() on the change event of the dropdown
$('.myDropDownClass').change(function{
ChangeMap();
});
// call the function ChangeMap() on the click event of the submit button
$('#map_change_button').click(function{
ChangeMap();
});