http://www.scic.com/scheduleFor some reason, I cannot reset the City back to the initial first option when the Clear Selection link is clicked.
This is the code that is called when it is clicked:
- $('#clear_geo').click(function(event) {
$('#input_zip').val('0'); zip = '0';
event.preventDefault();
st_list = Array();
refresh_s_boxes();
refreshList();
});
Setting the val() works but it stays on the last selected value.
Any ideas?
I've tried a number of things:
- document.getElementById('input_zip').value= '0';
- $('#input_zip').find('option:first').attr('selected', 'selected')
- var field = $('#input_zip');
field.val($('option:first', field).val());
But nothing has worked.