title: how to show message every time when record is deleted?
body: <p>i have list of records with delete button. i am deleting record using ajax-Jquery .when i delete the record first time it shows message.but when i delete other record without refreshing page , it does not show message. for that , i need to refresh the page every time.</p>
  
  <p><strong>jquery</strong></p>
  
  <pre><code>$(document).on('click', '[name="deleteRecord"]', function(){
       var id= $(this).attr('id');
       var parent = $(this).parent().parent();
        if (confirm("Are you sure you want to delete this row?"))
          {
           $.ajax({
                     type: "POST",
                     url: "admin_operation.php?mode=delete_category",
                     data:{id:id},
                     cache: false,
  
                     success: function(data)
                     { 
  
                      if($.trim(data)== 'yes')
                      {  
                        $("#notice").html('&lt;div class="alert alert-warning"&lt;strong&gt;Successfully !&lt;/strong&gt; record deleted.&lt;/div&gt;').fadeOut(5000);
                        parent.fadeOut('slow', function() {$(this).remove();});
  
  
                      }
                      else
                      {
                        alert('record can not be deleted.Try later. ');
                      }
                    }
               });
          }
  
   });
  </code></pre>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;div id="notice" &gt;
  
       **here message is displayed**
  &lt;/div&gt;
  </code></pre>
  
  <p>message is shown first time , but second time message is not shown, i think when first time record is deleted , it removes the <code>div id=notice</code> . so second time function can not fount div element with id=notice.</p>