jQuery Top Alertjs Plugin Example

  • click Default

                                
    $('body').topAlertjs();
                                
                            
  • click Info

                                
    $('body').topAlertjs({
        type: 'info',
        message: 'Boton Info Top Alertjs',
        close: true,
        duration: 5
    });
                                
                            
  • click Warning

                                
    $('body').topAlertjs({
        type: 'warning',
        message: 'Boton Warning Top Alertjs',
        close: true,
        duration: 5
    });
                                
                            
  • click Error

                                
    $('body').topAlertjs({
        type: 'error',
        message: 'Boton Error Top Alertjs',
        close: true,
        duration: 5
    });
                                
                            
  • click Success

                                
    $('body').topAlertjs({
        type: 'success',
        message: 'Boton Success Top Alertjs',
        close: true,
        duration: 5
    });
                                
                            
  • click Confirm

                                                    
    $('body').topAlertjs({
        type: 'confirm',
        message: 'Boton confirm Top Alertjs',
        callback: function ( confirm ) { if( confirm ) alert( 'Ok' ); }
    });
                                                    
                                                

© 2019