Skip to content

Instantly share code, notes, and snippets.

tripFilter = function () {
var tripClass = '.hotel-trip select',
hotelClass = '.hotel-name select',
cityClass = '.city-date select',
unusedClass = '.unused-options select';
var tripSelect = jQuery(cityClass), //used to be tripClass
trip = tripSelect.val(), //figure out which trip they're going on
hotelSelect = tripSelect.parents('form').find(hotelClass); //set the var for the dropdown box for Hotel Room Option