Looking for some help with a script on my website ():
$('#scheduleBox .selectCity select option').click(function() {
var cityToShow = $(this).attr('value');
switch(cityToShow) {
case '0':
$('.bucuresti, .cluj, .otopeni, .iasi').show();
break;
case '1':
$('.cluj, .otopeni, .iasi').hide();
$('.bucuresti').show();
break;
case '2':
$('.cluj, .bucuresti, .iasi').hide();
$('.otopeni').show();
break;
case '3':
$('.bucuresti, .otopeni, .iasi').hide();
$('.cluj').show();
break;
case '4':
$('.bucuresti, .otopeni, .cluj').hide();
$('.iasi').show();
break;
};
});
This code should show or hide different activities based on the selected city. It's working in Firefox but having issues in Chrome.
The actual script can be found in gears.js file.
Any assistance would be greatly appreciated!