Why is the panel not showing?

Why is the panel not showing?

Hi guys Im using jQuery and I have the following problem. I have a button that shows and displays an adjacent panel, and everything works well, except in that panel i have a button to load some data, and when I click that button, the other button to show the panel doesnt show it again after hiding it. My jquery is following:

  1. var add_student_toggle = false;

  2. $("#add-student-link").click(function()
  3. {
  4.     if (add_student_toggle == true)
  5.     {
  6.         
  7.         $("#col-students").removeClass("col-lg-8");
  8.         $("#col-students").addClass("col-lg-12");       
  9.         
  10.         $("#col-add-students").removeClass("col-lg-4");
  11.         $("#col-add-students").hide();

  12.         add_student_toggle = false;        
  13.     }
  14.     else
  15.     {
  16.         $("#col-students").removeClass("col-lg-12");
  17.         $("#col-students").addClass("col-lg-8");

  18.         $("#col-add-students").show();
  19.         $("#col-add-students").addClass("col-lg-4");

  20.         add_student_toggle = true;        
  21.     }
  22. });

Add Student