Displaying success message with JQuery (should be easy)

Displaying success message with JQuery (should be easy)

Hello, I am new to using JQuery and have a simple question please.  I have added the following JQuery code to remove a <div> row when the delete image is clicked and to use GET for a PHP file to grab the ID to remove from the database.  It works fine:

  1. $(document).ready(function()
                                    {
                                        $('img.delete').click(function()
                                        {
                                          $.get('main.php?action=deleteRow', {id: $(this).parent().attr('id')});
                                           
                                          $(this).parent().remove();
                                          
                                        });
    1.                                });










How do I make it display a simple message on the page that the row has been removed successfully?  Because that code just removes the row with no message.  Thanks.