jQuery( document ).ready(function() { jQuery('.find-tickets #datepick').datepicker({ todayHighlight: true, autoclose: true, startDate: "11/24/2017" }).on('changeDate', function(e) { jQuery('.find-tickets').submit(); }); }); jQuery( document ).ready(function() { jQuery('.events-list a.event').click(function(e){ trigger = jQuery(e.target); daystring = trigger.parents('.cal-cell').attr('data-cal-row') suffix = daystring.match(/\d+/); //alert(suffix) if(suffix > 4){ jQuery('.event-info-stream').css('left', 'auto') jQuery('.event-info-stream').css('right', '-6px') } if(suffix <= 4){ jQuery('.event-info-stream').css('right', 'auto') jQuery('.event-info-stream').css('left', '-6px') } }); }); jQuery(document).ready(function($) { $('#faqs .strong').each(function() { var tis = $(this), state = false, answer = tis.next('div').hide().css('height','auto').slideUp(); tis.click(function() { state = !state; answer.slideToggle(state); tis.toggleClass('active',state); }); }); }); /* jQuery(document).ready(function($) { $('.details-btn').click(function() { //alert('hi'); //$(this).parent().next().slideToggle(200); $(this).parents(".broadway-info").next().slideToggle(200); if ($(this).text() == "Learn More") { $(this).text("Close"); } else { $(this).text("Learn More"); } }); $('.details-btn-pastshow').click(function() { //alert('hi'); //$(this).parent().next().slideToggle(200); $(this).parents(".broadway-info").next().slideToggle(200); if ($(this).text() == "Learn More") { $(this).text("Close"); } else { $(this).text("Learn More"); } }); }); */