Thursday, June 14, 2012

how to auto close alert box javascript

how to auto close alert box javascript
how to auto close alert box javascript

I am also searching this code , if you found please comment code here

thanks 

2 comments:

  1. hey you can go throw this:

    $(".alert-message").alert();
    window.setTimeout(function() { $(".alert-message").alert('close'); }, 2000);
    If you want to wrap it in a nifty function you could do this.

    function createAutoClosingAlert(selector, delay) {
    var alert = $(selector).alert();
    window.setTimeout(function() { alert.alert('close') }, delay);
    }

    or try this link
    http://stackoverflow.com/questions/7643308/how-to-automatically-close-alerts-using-twitter-bootstrap

    ReplyDelete

If you Satisfied , Please Leave a comment