regarding adding new button with function

regarding adding new button with function

hello everyone,

i am working  on  a laravel project in which i have a button which has to be changed dynamically like waiting for approval if the user approves then button change dynamically

i have a ajax function but do not know how to change button dynamically

   $(document).on('click', '.waiting', function(){
        var id = $('.waiting').val();
        $.ajax({
            url:"{{route('eventbudget.status')}}",
            data:{'id':id},
            success:function(response)
            {
               
            }


        })


        });

    });

and please tell about jquery object