Good day fellow coders,
After tinkering awhile, I still couldn't find a way to invoke visual effects in jQuery and trigger a function afterwards. The program either completes mere visual effects, such as a vertical flip, or solely executes the denoted function. Is there a way to firstly complete the graphical effects and trigger the included function lastly, in just one click? Below the pertaining code:
$("#HTMLButton").click(function(){
            $("#Div").slideUp(400); //Is only run
            arbitraryFunction; //Ignored 
        });
  $("#HTMLButton").click(function(){
                arbitraryFunction; //Is only run
                $("#Div").slideUp(400); //Ignored
            });
Thank you in advance!