Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide Success Message

I am showing following code as successful updation of records. The user remains on the same Edit section & see's this msg just above update button.

I want this msg to disappear as user can still edit the records.

How to hide this success msg?

<div class="label label-success" data-ng-show="updateStatus">
   <span class="glyphicon glyphicon-thumbs-up icon-white"></span>updated!
</div>
like image 369
Anup Avatar asked Mar 02 '26 19:03

Anup


1 Answers

Just add this after you add the success message

            setTimeout(function(){$('.label-success').slideUp();},3000);  //slidup after 3 second

the above code will slideup the message after 3 second

like image 119
sanjeev Avatar answered Mar 04 '26 10:03

sanjeev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!