Toggle show/hide element with jQuery [closed]

if you want to hide and show the div with id “addchild” while clicking the button with id “addbutton”:

  $('#addbutton').click(function(){
  $("#addchild").slideToggle();
  });

Leave a Comment