jQuery - result reset function

0 votes
84 views
added Aug 8, 2019 in jQuery by lcjr First Warrant Officer (9,190 points)
function resetResult(){
  $('.school-form .selection input:checkbox').prop('checked', true);
  $('.sm-school-col .sm-school').addClass('active');
  $('.school-empty').removeClass('active');
  $('.sm-school-col.active input:checkbox').prop('checked', false);
  $('.sm-actions button').removeClass('active');
  $('span.selected').text('0');
  updateResult();
}

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...