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:
- var add_student_toggle = false;
-
- $("#add-student-link").click(function()
- {
- if (add_student_toggle == true)
- {
-
- $("#col-students").removeClass("col-lg-8");
- $("#col-students").addClass("col-lg-12");
-
- $("#col-add-students").removeClass("col-lg-4");
- $("#col-add-students").hide();
-
- add_student_toggle = false;
- }
- else
- {
- $("#col-students").removeClass("col-lg-12");
- $("#col-students").addClass("col-lg-8");
-
- $("#col-add-students").show();
- $("#col-add-students").addClass("col-lg-4");
-
- add_student_toggle = true;
- }
- });