0

My code:

$(document).ready(function() {
  var up = false;

  $('#that_list').slideUp();

  $('#updates').click(function() {
    $('#that_list').slideToggle(200);
  });

});

It works, but if I click the anchor called updates too many times the list of items called that_list slides up and down multiple times after I stop clicking. I'm pretty new to jquery and javascript and have not found a solution to this on the website (maybe I'm not searching for the right question.)

koralarts
  • 1,983
  • 3
  • 31
  • 43

0 Answers0