// The event handler are bind to text input, select box, etc upon changing the data of element $("#request-status-select, #request-organization-select") .on("change", function() { search(); });
$('#religion').on('change', function() { if ($(this).val() === 'others' ){ $('.religion_others-wrap').collapse('show') .find('input').focus().val(''); } else { if ($('.religion_others-wrap').hasClass('in')){ $('.religion_others-wrap').collapse('hide'); } } });
$('#trafficsrc').on('change', function(){ var tsrc = $(this).val() if(tsrc == 'Others'){ $('#trfsrc_others-wrap').show(); } else { $('#trfsrc_others-wrap').hide(); } });