function updateResult(){ var ttl_school = $('.sm-school-col.active').find('.sm-school.active').length; $('.school-result span.ttl').text(ttl_school); return ttl_school; }