change background image then do call back

change background image then do call back

  1.         $('.collapse').click(
                function(){
                    /*THIS*/ $('#loadingSymbol').css('background-image','url("ajax-loader.gif")');
                        triggerReset();
                        $('.identRow').each(
                            function(index, value){
                                $(this).trigger('click');
                                $(this).trigger('click');
                            }
                        );           
                        $('.identChildRow').each(
                            function(index, value){
                                $(this).trigger('click');
                                $(this).trigger('click');
                            }
                        );           
                        $('.identChildChildRow').each(
                            function(index, value){
                                $(this).trigger('click');
                                $(this).trigger('click');
                            }
                        );   
                    /*THAT*/ $('#loadingSymbol').css('background-image','url("")');                       
                }           
            );























I want to make /*THIS*/ happen then do the functions below, then do /*THAT*/.

But /*THIS*/ and /*THAT*/ never happen. Is there a way of doing a callback, so that when the background image has changed, do the below functions. Then end with changing it to nothing again?