');}, success: function(option) { $('.sugg_block').html(option); } }); } }); var toggle_files_lst = function(){ $(this).children("ul").toggleClass("hide"); $(this).find("svg").toggleClass("rotate_180"); }; $( ".vars_list" ).on( "click", toggle_files_lst );