Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".toggle_handle").click(function(){
- console.log($(this));
- //$(this).closest(".toggle_container").addClass("expanded");
- if($(this).closest(".toggle_container").hasClass("expanded")){
- console.log("yes");
- $(this).closest(".toggle_container").removeClass("expanded");
- } else{
- console.log("none");
- $(this).closest(".toggle_container").addClass("expanded");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement