WALKING TOURS

MUSEUM TOURS

COMBO TOURS

Reviews

What Our Customers Love About Us...

Latest Blogs

"); //Add default option var def = (curr.find("div[selected='selected']").length >= 1) ? $(curr.find("div[selected='selected']")) : $(curr.find(".cusDD_opt")[0]); curr.find(".cusDD_select").prepend(def.text()); } //End for loop $(document).click(function() { $(".cusDD_options").slideUp(200); $(".cusDD_arrow").removeClass("active"); }) $(select).click(function(e) { e.stopPropagation(); $(this).find(".cusDD_options").slideToggle(200); $(this).find(".cusDD_arrow").toggleClass("active"); }) $(".cusDD_opt").click(function() { $($(this).parent()).siblings(".cusDD_select").contents()[0].nodeValue = $(this).text(); $(this).parent().find(".cusDD_opt").removeAttr("selected"); $(this).attr("selected", "selected"); }); } // End function) (function($) { $.fn.changeElementType = function(newType) { var attrs = {}; $.each(this[0].attributes, function(idx, attr) { attrs[attr.nodeName] = attr.nodeValue; }); this.replaceWith(function() { return $("<" + newType + "/>", attrs).append($(this).contents()); }); }; })(jQuery); /* Call the cusDD function on any select elements by ID or Class */ $(document).ready(function() { cusDD("#affiliate_select"); $(".cusDD_opt").on('click', function() { var current_id = $(this).parent().find("[selected='selected']").attr('value'); $('.affiliate_content').hide('slow'); //unhides current item $('#'+current_id).show('slow'); }); });