Alerts & notifications for jQuery and jQuery Mobile

Learn about Alerts & notifications

Use the alert, confirm and prompt messages to pop a message box in the middle of the screen. Alert the user or collect feedback at the same time.

Use toast and snackbars to post updates to the user without interrupting them. Notes can be used as static, always-visible notifications.

Use the components in both mobile and desktop apps and websites:

  • Alert
  • Confirm
  • Prompt
  • Toast
  • Snackbar with or without action
  • Notes
  • Color schemes
  • Theming


Alert & notification demos available for other frameworks.

Viewing demos & code for

light
dark

Change the theme setting here

Alerts & notifications - Alert

Change demo
Alert
JQuery Alert, confirm and prompt dialogs for giving feedback to users and for quick & focused data entry. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

$(function () {

    $('#md-notif-alert').on('click', function () {
        mobiscroll.alert({
            title: 'Cellular Data is Turned Off for "Safari"',
            message: 'You can turn on cellular data for this app in Settings.',
            callback: function () {
                mobiscroll.toast({
                    message: 'Alert closed'
                });
            }
        });
    });

    $('#md-notif-confirm').on('click', function () {
        mobiscroll.confirm({
            title: 'Use location service?',
            message: 'Help apps determine location. This means sending anonymous location data, even when no apps are running.',
            okText: 'Agree',
            cancelText: 'Disagree',
            callback: function (res) {
                mobiscroll.toast({
                    message: res ? 'Agreed' : 'Disagreed'
                });
            }
        });
    });

    $('#md-notif-prompt').on('click', function () {
        mobiscroll.prompt({
            title: 'Sign in to iTunes Store',
            message: 'Enter the Apple ID password for "hello@mobiscroll.com".',
            placeholder: 'Password',
            inputType: 'password',
            callback: function (value) {
                mobiscroll.toast({
                    message: value === null ? 'Cancel was pressed.' : ('The password: ' + value)
                });
            }
        });
    });

});
<div id="demo" mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Alerts</div>
        <div class="mbsc-btn-group-block">
            <button id="md-notif-alert">Alert</button>
            <button id="md-notif-confirm">Confirm</button>
            <button id="md-notif-prompt">Prompt</button>
        </div>
    </div>
</div>

Alerts & notifications - Notifications

Change demo
Notifications
JQuery Notification examples of toast and snackbar with or w/o action. With undo, retry or custom functionality. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    theme: ''
};

$(function () {

    $('#md-toast-bottom').on('click', function () {
        mobiscroll.toast({
            message: 'Message sent'
        });
    });

    $('#md-toast-top').on('click', function () {
        mobiscroll.toast({
            message: 'Message sent',
            display: 'top'
        });
    });

    $('#md-toast-primary').on('click', function () {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'primary'
        });
    });

    $('#md-toast-secondary').on('click', function () {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'secondary'
        });
    });

    $('#md-toast-success').on('click', function () {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'success'
        });
    });

    $('#md-toast-danger').on('click', function () {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'danger'
        });
    });

    $('#md-toast-warning').on('click', function () {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'warning'
        });
    });

    $('#md-toast-info').on('click', function () {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'info'
        });
    });

    $('#md-snackbar-bottom').on('click', function () {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded'
        });
    });

    $('#md-snackbar-top').on('click', function () {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            display: 'top'
        });
    });

    $('#md-snackbar-action').on('click', function () {
        mobiscroll.snackbar({
            message: 'Connection timed out. Showing limited messages.',
            button: {
                text: 'Retry',
                action: function () {
                    mobiscroll.toast({
                        message: 'Retrying...'
                    });
                }
            }
        });
    });

    $('#md-snackbar-primary').on('click', function () {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'primary'
        });
    });

    $('#md-snackbar-secondary').on('click', function () {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'secondary'
        });
    });

    $('#md-snackbar-success').on('click', function () {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'success'
        });
    });

    $('#md-snackbar-danger').on('click', function () {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'danger'
        });
    });

    $('#md-snackbar-warning').on('click', function () {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'warning'
        });
    });

    $('#md-snackbar-info').on('click', function () {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'info'
        });
    });

});
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Toast</div>
        <div class="mbsc-btn-group-block">
            <button id="md-toast-bottom">Bottom toast</button>
            <button id="md-toast-top">Top toast</button>
            <button id="md-toast-primary">Primary toast</button>
            <button id="md-toast-secondary">Secondary toast</button>
            <button id="md-toast-success">Success toast</button>
            <button id="md-toast-danger">Danger toast</button>
            <button id="md-toast-warning">Warning toast</button>
            <button id="md-toast-info">Info toast</button>
        </div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Snackbar</div>
        <div class="mbsc-btn-group-block">
            <button id="md-snackbar-bottom">Bottom snackbar</button>
            <button id="md-snackbar-top">Top snackbar</button>
            <button id="md-snackbar-action">Snackbar with action</button>
            <button id="md-snackbar-primary">Primary snackbar</button>
            <button id="md-snackbar-secondary">Secondary snackbar</button>
            <button id="md-snackbar-success">Success snackbar</button>
            <button id="md-snackbar-danger">Danger snackbar</button>
            <button id="md-snackbar-warning">Warning snackbar</button>
            <button id="md-snackbar-info">Info snackbar</button>
        </div>
    </div>
</div>

Alerts & notifications - Note

Change demo
Note
JQuery Note examples for showing users inline messages with different importance indicators. Supports color presets. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    lang: '',
    theme: ''
}
<div class="mbsc-align-center">
    <div class="mbsc-note mbsc-note-primary">This is a primary note!</div>
    <div class="mbsc-note mbsc-note-secondary">This is a secondary note!</div>
    <div class="mbsc-note mbsc-note-success">This is a success note!</div>
    <div class="mbsc-note mbsc-note-danger">This is a danger note!</div>
    <div class="mbsc-note mbsc-note-warning">This is a warning note!</div>
    <div class="mbsc-note mbsc-note-info">This is a info note!</div>
    <div class="mbsc-note mbsc-note-light">This is a light note!</div>
    <div class="mbsc-note mbsc-note-dark">This is a dark note!</div>
</div>

Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.

Component license


Purchase component licenses if you are looking for specific funcionality.

Total


All features will be included with the license.

Buy component license

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for JQuery $595


Use Javascript when building with plain and simple JS. Use jQuery when you have jQuery already included or if you are building with jQuery Mobile. Use AngularJS when building with Angular 1.x or Ionic 1. Use Angular when building with Angular 2/4/5/6/7 or Ionic 2/3/4. Use it when you are building your app or website with React.


Buy framework license
See other licensing options

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for JQuery $595


  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6/7 and Ionic 2/3/4
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Framework license


Select the development framework you are using. Get all 36 components with the license.

Mobiscroll for Javascript
Mobiscroll for jQuery
Mobiscroll for React
Mobiscroll for Angular
Mobiscroll for Angular JS
  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6/7 and Ionic 2/3/4
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Select the framework you are interested in

Javascript
jQuery
Angular
Angular JS
React

Use Javascript when building with plain and simple JS.

Use jQuery when you have jQuery already included or if you are building with jQuery Mobile.

Use AngularJS when building with Angular 1.x or Ionic 1.

Use Angular when building with Angular 2/4/5/6/7 or Ionic 2/3/4.

Use it when you are building your app or website with React.

Do you need additional support seats?

The framework license comes with one support seat. ( +$50/seat )

Add the source code?

Price
Buy now
Customize & try demos locally
Sign in or start your free trial

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Email address

Customize & try this demo locally
Sign in or start your free trial

We have to set you up with a trial for this to run 👍

Email address

Customize & try demos locally
You can download and use Mobiscroll for Free

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Install demo in your app
Follow this quick, two minute install guide
Close window

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

Step 2.Run the following command in the root folder of your Ionic project

Copy command
$ mobiscroll config ionic
$ mobiscroll config ionic --lite

You will be prompted to log in with your mobiscroll account. Set your password here

Create an Ionic 3 & Mobiscroll starter with the CLI:

$ mobiscroll start ionic myStarter

Run this command for Ionic 4 & Mobiscroll starter:

$ mobiscroll start ionic-angular myStarter

Step 3.Copy the code into your app. HTML goes into the markup, TS into Typescript.

Copy TS
Copy HTML
Copy CSS

Run ionic serve in the root folder of your app 🎉

Copy command
$ ionic serve
Thanks for downloading
Try and customize the app locally

Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ionic serve

Let us know if we can help and enjoy!

Change your password
Need to update your password? Enter and hit the button below

You are setting a password for the account

New Password Required Enter at least 6 characters
Change your password
Need to update your password? Enter and hit the button below

Your password has been changed!

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

Please extract the zip file and simply open the demos in your favorite browser. For instructions on how to install Mobiscroll in your project follow this guide.


Let us know if we can help and enjoy!

Thanks for downloading
Customize demos locally

The demo is using an in-browser TypeScript transpiler app as its base. Extract the zip file and open the index.html on your local dev server.

You can also use live-server. For installation and usage, open a terminal window and follow these steps.

Step 1. Install live-server
$ npm install -g live-server
Step 2. Start server & run app
$ live-server

Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The easiest way to get started is to follow the installation steps and by grabbing the code directly from the demo page. Let us know if we can help and enjoy!

You'll find a fully functional Kitchen-sink Ionic app in the zip file.

Thanks for downloading
Customize demos locally

The demos are using Babel's in-browser ES6 and JSX transformer.

Please extract the zip file and open the demos in your browser. For instructions on how to install Mobiscroll in your project follow this guide.


Let us know if we can help and enjoy!

Demos
Alerts & notifications
Alert Notifications Note
Alerts & notifications
Alert Notifications Note
Components
Alerts & notifications 3
Buttons 4
Calendar 26
Cards 14
Color 10
Date & Time 19
Event Calendar 20
Forms 9
Grid layout 7
Image 7
Inputs & fields 6
Listview 17
Measurement 10
Navigation 8
Number 8
Numpad 13
Option List 4
Popup 10
Range 18
Scroller 7
Scrollview 5
Select 16
Slider & progress 4
Styling 6
Timer 5
Timespan 6
Toggle & Radio 4
Treelist 7
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos