Popup for jQuery and jQuery Mobile

Learn about Popup

The popup provides a frame for all your pop-over needs able to render custom content, forms or combined views.

Use it for contextual pop-ups, data-entry or to inform users in a consistent way with all other Mobiscroll component.

Shipping with useful features for a refined UX, including:

  • Usage on mobile and desktop
  • Combined views for various components
  • Initialization on any custom content
  • Consistent styling with all components
  • Flexible button API
  • Full theming support with light & dark variants
  • Modal, popup, bubble and top/bottom display
  • RTL Support
  • Button localization


Popup demos available for other frameworks.

Viewing demos & code for

light
dark

Change the theme setting here

Popup - Basic

Change demo
Basic
JQuery Popup demo with user profile and radio button list return value. Combine different elements into a widget. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    var account = $('#demo').mobiscroll().popup({
            display: 'center'
        }).mobiscroll('getInst'),

        update = $('#list').mobiscroll().popup({
            display: 'center',
            onSet: function (event, inst) {
                $('#showPopup').val($('input[name="update"]:checked').val());
            }
        }).mobiscroll('getInst'),

        scrollable = $('#scrollable').mobiscroll().popup({
            display: 'center',
            scrollLock: false,
            cssClass: 'mbsc-no-padding md-content-scroll',
            buttons: []
        }).mobiscroll('getInst');;

    $('#listview').mobiscroll().listview({
        enhance: true,
        swipe: false,
        onItemTap: function () {
        scrollable.hide();
        mobiscroll.toast({
            message: event.target.textContent + ' clicked'
        });
    }
    });

    $('#showAccount').click(function () {
        account.show();
        return false;
    });

    $('#showPopup').click(function () {
        update.show();
        return false;
    });

    $('#showScrollable').click(function () {
        scrollable.show();
        return false;
    });

});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Use the popup popup with or without return value.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Without return value</div>
        <div class="mbsc-btn-group-block">
            <button id="showAccount">Show Popup</button>
        </div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">With return value</div>
        <label> Update
            <input id="showPopup" placeholder="Please Select..." readonly />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">With scrollable content</div>
        <div class="mbsc-btn-group-block">
            <button id="showScrollable">Show Popup</button>
        </div>
    </div>
</div>

<div id="demo" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/f1.png">
        <h3>Liza Taylor</h3>
        <p>liza.taylor@mobiscroll.com <br> (202) 555-0127</p>
    </div>
</div>

<div id="list" class="mbsc-cloak">
    <div mbsc-form>
        <div class="mbsc-form-group-inset">
            <p>Some updates are available for you. <br> When would you like to install them?</p>
        </div>
        <div class="mbsc-form-group-inset">
            <label>
                <input type="radio" name="update" value="Right now" checked /> Right now
            </label>
            <label>
                <input type="radio" name="update" value="Later on today" /> Later on today
            </label>
            <label>
                <input type="radio" name="update" value="Remind me tomorrow" /> Remind me tomorrow
            </label>
        </div>
    </div>
</div>

<div id="scrollable" class="mbsc-cloak">
    <ul id="listview" class="mbsc-cloak">
        <li data-icon="connection">Wifi</li>
        <li data-icon="location">Location</li>
        <li data-icon="volume-medium">Sound</li>
        <li data-icon="fa-rotate-left">Rotation</li>
        <li data-icon="ion-bluetooth">Bluetooth</li>
        <li data-icon="cogs">Settings</li>
        <li data-icon="user4">Reading</li>
        <li data-icon="download">Data</li>
        <li data-icon="eye">Eye comfort</li>
        <li data-icon="mobile">Screenshot</li>
        <li data-icon="airplane">Airplane Mode</li>
        <li data-icon="alarm2">Alarm</li>
        <li data-icon="material-message">Messages</li>
        <li data-icon="meteo-weather4">Weather</li>
        <li data-icon="camera">Camera</li>
        <li data-icon="material-photo-size-select-large">Edit</li>
    </ul>
</div>
.md-content-scroll .mbsc-fr-c {
    height: 400px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

Popup - Signup and login

Change demo
Signup and login
JQuery Popup demo with sign up and login forms. Use it with center, anchored bubble or top/bottom display. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    var register = $('#demo').mobiscroll().popup({
            display: 'center',
            buttons: [{
                text: 'Sign Up',
                handler: 'set'
            }]
        }).mobiscroll('getInst'),

        login = $('#login').mobiscroll().popup({
            display: 'center',
            buttons: [{
                text: 'Sign In',
                handler: 'set'
            }],
            onMarkupReady: function (event, inst) {
                $('.md-social-btn', event.target).click(function () {
                    inst.hide();
                });
            }
        }).mobiscroll('getInst');

    $('#showRegister').click(function () {
        register.show();
        return false;
    });

    $('#showLogin').click(function () {
        login.show();
        return false;
    });

});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Use the popup for pop-up register and login forms.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-btn-group-block">
            <button id="showRegister">Show register form</button>
            <button id="showLogin">Show login form</button>
        </div>
    </div>
</div>

<div id="demo" class="mbsc-cloak">
    <div mbsc-form>
        <div class="mbsc-form-group-inset">
            <label>
                <input type="text" name="name" placeholder="Name" />
            </label>
            <label>
                <input type="text" name="email" placeholder="Email" />
            </label>
            <label>
                <input name="password" type="text" placeholder="Password" data-password-toggle="true" data-icon-show="eye" data-icon-hide="eye-blocked" />
            </label>
        </div>
    </div>
</div>

<div id="login" class="mbsc-cloak">
    <div mbsc-form>
        <div class="mbsc-form-group-inset">
            <label>
                <input type="text" name="email" placeholder="Email" />
            </label>
            <label>
                <input name="password" type="text" placeholder="Password" data-password-toggle="true" data-icon-show="eye" data-icon-hide="eye-blocked" />
            </label>
        </div>
        <div class="mbsc-align-center">or log in with one of your existing accounts</div>
        <div class="mbsc-form-group-inset">
            <button class="md-social-btn mbsc-btn-block" style="background:#3c5c9a;color:#fff;">
                <span class="mbsc-ic mbsc-ic-ion-social-facebook mbsc-pull-left"></span>
                Log in with Facebook
            </button>
            <button class="md-social-btn mbsc-btn-block" style="background:#28aae1;color:#fff;">
                <span class="mbsc-ic mbsc-ic-fa-twitter mbsc-pull-left"></span>
                Log in with Twitter
            </button>
            <button class="md-social-btn mbsc-btn-block" style="background:#d34230;color:#fff;">
                <span class="mbsc-ic mbsc-ic-fa-google mbsc-pull-left"></span>
                Log in with Google
            </button>
        </div>
    </div>
</div>
.md-social-btn .mbsc-ic {
    float: left;
}

Popup - Sheet list & grid

Change demo
Sheet list & grid
JQuery Popup with scrollable sheet grid view or sheet list view. Provide contextual actions and shortcuts. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    var list = $('#list').mobiscroll().popup({
        buttons: [],
        display: 'bottom',
        cssClass: 'mbsc-no-padding'
    }).mobiscroll('getInst');

    var grid = $('#grid').mobiscroll().popup({
        buttons: [],
        display: 'bottom',
        cssClass: 'mbsc-no-padding'
    }).mobiscroll('getInst');

    $('#demo-ol').mobiscroll().optionlist({
        type: 'menu',
        select: 'single',
        snap: true,
        itemWidth: 80,
        display: 'inline',
        cssClass: 'md-bottom-grid',
        onItemTap: function (event, inst) {
            grid.hide();
            mobiscroll.toast({
                message: event.target.textContent + ' clicked'
            });
        }
    });

    $('#demo-lv').mobiscroll().listview({
        enhance: true,
        swipe: false,
        onItemTap: function (event, inst) {
            list.hide();
            mobiscroll.toast({
                message: $(event.target).text() + ' clicked'
            });
        }
    });

    $('#showList').click(function () {
        list.show();
        return false;
    });

    $('#showGrid').click(function () {
        grid.show();
        return false;
    });

});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Use the popup for pop-up sheet list and grid.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-btn-group-block">
            <button id="showList">Show sheet list</button>
            <button id="showGrid">Show sheet grid</button>
        </div>
    </div>
</div>

<div id="list" class="mbsc-cloak">
    <ul id="demo-lv">
        <li data-role="list-divider">Actions</li>
        <li data-icon="share">Share</li>
        <li data-icon="cloud-upload">Upload</li>
        <li data-icon="copy3">Copy</li>
        <li data-icon="print">Print</li>
    </ul>
</div>

<div id="grid" class="mbsc-cloak">
    <ul id="demo-ol">
        <li data-icon="ion-social-facebook">Facebook</li>
        <li data-icon="fa-twitter">Twitter</li>
        <li data-icon="fa-google-plus">Google plus</li>
        <li data-icon="ion-email">Email</li>
        <li data-icon="bubble">Message</li>
        <li data-icon="copy3">Copy</li>
    </ul>
</div>
/* grid */

.md-bottom-grid.mbsc-ms-c {
    border: 0;
}

Popup - Lists

Change demo
Lists
JQuery Pop-over with anchored display featuring horizontal, vertical lists and checklist. With source code. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    var horizontal = $('#horizontal').mobiscroll().popup({
            display: 'bubble',
            anchor: '#showHorizontal',
            buttons: [],
            cssClass: 'mbsc-no-padding'
        }).mobiscroll('getInst'),

        vertical = $('#vertical').mobiscroll().popup({
            display: 'bubble',
            anchor: '#showVertical',
            buttons: [],
            cssClass: 'mbsc-no-padding md-vertical-list'
        }).mobiscroll('getInst'),

        checklist = $('#check').mobiscroll().popup({
            display: 'bubble',
            anchor: '#showChecklist',
            buttons: [],
            cssClass: 'mbsc-no-padding md-vertical-list'
        }).mobiscroll('getInst');

    $('#optionlist').mobiscroll().optionlist({
        theme: '',
        type: 'menu',
        snap: true,
        itemWidth: 80,
        display: 'inline',
        cssClass: 'md-no-border-grid',
        onItemTap: function (event, inst) {
            horizontal.hide();
            mobiscroll.toast({
                message: event.target.textContent + ' clicked'
            });
        }
    });

    $('#listview').mobiscroll().listview({
        theme: '',
        enhance: true,
        swipe: false,
        onItemTap: function (event, inst) {
            vertical.hide();
            mobiscroll.toast({
                message: event.target.textContent + ' clicked'
            });
        }
    });

    $('#checklist').mobiscroll().listview({
        enhance: true,
        swipe: false
    });

    $('#showHorizontal').click(function () {
        horizontal.show();
        return false;
    });

    $('#showVertical').click(function () {
        vertical.show();
        return false;
    });

    $('#showChecklist').click(function () {
        checklist.show();
        return false;
    });

});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Use the popup for pop-up horizontal and vertical lists.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-btn-group-block">
            <button id="showHorizontal">Show horizontal list</button>
            <button id="showVertical">Show vertical list</button>
            <button id="showChecklist">Show checklist</button>
        </div>
    </div>
</div>

<div id="horizontal" class="mbsc-cloak">
    <ul id="optionlist" class="mbsc-cloak">
        <li data-icon="connection">Wifi</li>
        <li data-icon="location">Location</li>
        <li data-icon="volume-medium">Sound</li>
        <li data-icon="fa-rotate-left">Rotation</li>
        <li data-icon="ion-bluetooth">Bluetooth</li>
        <li data-icon="cogs">Settings</li>
        <li data-icon="user4">Reading</li>
        <li data-icon="download">Data</li>
    </ul>
</div>

<div id="vertical" class="mbsc-cloak">
    <ul id="listview" class="mbsc-cloak">
        <li data-icon="connection">Wifi</li>
        <li data-icon="location">Location</li>
        <li data-icon="volume-medium">Sound</li>
        <li data-icon="fa-rotate-left">Rotation</li>
        <li data-icon="ion-bluetooth">Bluetooth</li>
        <li data-icon="cogs">Settings</li>
        <li data-icon="user4">Reading</li>
        <li data-icon="download">Data</li>
    </ul>
</div>

<div id="check" class="mbsc-cloak">
    <div mbsc-form>
        <ul id="checklist">
            <li data-icon="connection"><input type="checkbox" />Wifi</li>
            <li data-icon="location"><input type="checkbox" />Location</li>
            <li data-icon="volume-medium"><input type="checkbox" />Sound</li>
            <li data-icon="fa-rotate-left"><input type="checkbox" />Rotation</li>
            <li data-icon="ion-bluetooth"><input type="checkbox" />Bluetooth</li>
            <li data-icon="cogs"><input type="checkbox" />Settings</li>
            <li data-icon="user4"><input type="checkbox" />Reading</li>
            <li data-icon="download"><input type="checkbox" />Data</li>
        </ul>
    </div>
</div>
.md-vertical-list.mbsc-ios .mbsc-fr-arr {
    background: #fff;
}

.md-vertical-list.mbsc-ios-dark .mbsc-fr-arr {
    background: #0f0f0f;
}

.md-no-border-grid.mbsc-ms-c {
    border: 0;
}

Popup - User popover

Change demo
User popover
JQuery Pop-over demo with display on hover. Use it to provide more information for highlighted elements or text. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var popup = $('#details').mobiscroll().popup({
    display: 'bubble',
    anchor: '#link',
    buttons: []
}).mobiscroll('getInst');

$('#link').mouseenter(function () {
    popup.show();
    return false;
});

$('#details').mouseleave(function () {
    popup.hide();
    return false;
});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Hover on the link to show popup.</div>
    </div>
    <div class="mbsc-padding">
        <p>
            Meet web developer <a id="link" style="cursor:pointer;text-decoration:underline;">Liza</a> who designs and builds websites. She is responsible for the appearance, of the site and technical aspects, such as site speed and how much traffic the
            site can handle. She also creates site content that requires technical features.
        </p>
    </div>
</div>

<div id="details" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/f1.png">
        <h3>Liza Taylor</h3>
        <p>liza.taylor@mobiscroll.com <br> (202) 555-0127</p>
    </div>
</div>

Popup - Advanced widgets

Change demo
Advanced widgets
JQuery Popup widget demo with combined segmented control/tabs and time picker. Combine controls for advanced functionality. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

$(function () {

    var popup = $('#popup').mobiscroll().popup({
            cssClass: 'md-advanced-popup',
            buttons: ['set', 'cancel'],
            onSet: function (event, inst) {
                var day = $('input[name="day"]:checked').val(),
                    today = time.getVal(),
                    tempToday = new Date(today.setSeconds(0)),
                    tomorrow = new Date(tempToday.setDate(tempToday.getDate() + 1)),
                    selectedTime = day == 'today' ? today : tomorrow;

                $('#setTime').val(selectedTime.toLocaleString());
            }
        }).mobiscroll('getInst'),

        time = $('#time').mobiscroll().time({
            display: 'inline',
            steps: { minute: 15 },
            onInit: function (event, inst) {
                inst.setVal(new Date());
            },
            onMarkupReady: function (event, inst) {
                $(event.target).addClass('mbsc-fr-bottom');
                $(event.target).removeClass('mbsc-fr-inline');
            }
        }).mobiscroll('getInst');

    $('#setTime').click(function () {
        popup.show();
        return false;
    });

});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Use the popup popup for setting Date & Time value with Segmented and Time components.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Select time</div>
        <label> Date & Time
            <input id="setTime" placeholder="Please select...">
        </label>
    </div>
</div>

<div id="popup" class="mbsc-cloak">
    <div mbsc-form>
        <label>
            Today
            <input type="radio" data-role="segmented" name="day" value="today" checked>
        </label>
        <label>
            Tomorrow
            <input type="radio" data-role="segmented" name="day" value="tomorrow">
        </label>
        <div>
            <input id="time" type="hidden">
        </div>
    </div>
</div>
/* Needed for the time picker, because we removed the mbsc-fr-inline class below */

.md-advanced-popup .mbsc-fr,
.md-advanced-popup .mbsc-fr .mbsc-fr-popup {
    position: static;
    border: 0;
    pointer-events: auto;
    box-shadow: none;
}

/* Theme overrides */

.md-advanced-popup.mbsc-ios .mbsc-segmented,
.md-advanced-popup.mbsc-ios .mbsc-segmented-content {
    background: #d1d5db;
}

.md-advanced-popup.mbsc-ios-dark .mbsc-segmented,
.md-advanced-popup.mbsc-ios-dark .mbsc-segmented-content {
    background: #080808;
}

.md-advanced-popup.mbsc-windows .mbsc-segmented,
.md-advanced-popup.mbsc-windows .mbsc-segmented-content {
    background: #f2f2f2;
}

.md-advanced-popup.mbsc-windows-dark .mbsc-segmented,
.md-advanced-popup.mbsc-windows-dark .mbsc-segmented-content {
    background: #1a1a1a;
}

Popup - Configure buttons

Change demo
Configure buttons
JQuery Popup demo with different button configurations. Use it with or without buttons. Add custom actions. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    theme: '',
    lang: '',
    // context
};

$(function () {

    var noButtons = $('#no-button').mobiscroll().popup({
            display: 'center',
            buttons: []
        }).mobiscroll('getInst'),

        defaultButtons = $('#default').mobiscroll().popup({
            display: 'center'
        }).mobiscroll('getInst'),

        customButtons = $('#custom').mobiscroll().popup({
            display: 'center',
            buttons: [
                'set',
                {
                    text: 'Custom',
                    icon: 'checkmark',
                    handler: function () {
                        customButtons.hide();
                        mobiscroll.toast({
                            message: ' Custom button clicked'
                        });
                    }
                },
                'cancel'
            ]
        }).mobiscroll('getInst');

    $('#showNoButton').click(function () {
        noButtons.show();
        return false;
    });

    $('#showDefault').click(function () {
        defaultButtons.show();
        return false;
    });

    $('#showCustom').click(function () {
        customButtons.show();
        return false;
    });

});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Customize popup buttons depending on your context.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-btn-group-block">
            <button id="showNoButton">No button</button>
            <button id="showDefault">Default</button>
            <button id="showCustom">Custom buttons</buttom>
        </div>
    </div>
</div>

<div id="no-button" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <h3 class="md-text-center">Hi!</h3>
        <p class="md-text-center">This is a popup with no buttons</p>
    </div>
</div>

<div id="default" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <h3 class="md-text-center">Hi there!</h3>
        <p class="md-text-center">This is a popup with default button</p>
    </div>
</div>

<div id="custom" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <h3 class="md-text-center">Hi again!</h3>
        <p class="md-text-center">This is a popup with three custom buttons</p>
    </div>
</div>

Popup - Display modes

Change demo
Display modes
JQuery Popup demo with top/bottom center and anchored bubble display modes. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    var bottomDemo = $('#demo-bottom').mobiscroll().popup({
            display: 'bottom',
            buttons: [{
                    text: 'Ok',
                    handler: 'set'
                },
                'cancel'
            ]
        }).mobiscroll('getInst'),

        topDemo = $('#demo-top').mobiscroll().popup({
            display: 'top',
            buttons: [{
                    text: 'Ok',
                    handler: 'set'
                },
                'cancel'
            ]
        }).mobiscroll('getInst'),

        centerDemo = $('#demo-center').mobiscroll().popup({
            display: 'center',
            buttons: [{
                    text: 'Ok',
                    handler: 'set'
                },
                'cancel'
            ],
        }).mobiscroll('getInst'),

        bubbleDemo = $('#demo-bubble').mobiscroll().popup({
            display: 'bubble',
            anchor: $('#show-bubble'),
            buttons: [{
                    text: 'Ok',
                    handler: 'set'
                },
                'cancel'
            ]
        }).mobiscroll('getInst');

    $('#show-bottom').click(function () {
        bottomDemo.show();
        return false;
    });

    $('#show-top').click(function () {
        topDemo.show();
        return false;
    });

    $('#show-center').click(function () {
        centerDemo.show();
        return false;
    });

    $('#show-bubble').click(function () {
        bubbleDemo.show();
        return false;
    });

});
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Try different display modes</div>
        <div class="mbsc-form-group mbsc-btn-group-block">
            <button id="show-bottom">Try bottom display mode</button>
            <button id="show-top">Try top display mode</button>
            <button id="show-center">Try center display mode</button>
            <button id="show-bubble">Try bubble display mode</button>
        </div>
    </div>
</div>

<div id="demo-bottom" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-top" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-center" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-bubble" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

Popup - Theming capabilities

Change demo
Theming capabilities
JQuery Popup widget with iOS, Material, Windows look & feel. Customize colors and styling with theme builder. For jQuery or jQuery Mobile.
mobiscroll.settings = {
    theme: '',
    lang: ''
};


$(function () {

    var iosDemo = $('#demo-ios').mobiscroll().popup({
            theme: 'ios',
        display: 'center'
        }).mobiscroll('getInst'),
        iosDarkDemo = $('#demo-ios-dark').mobiscroll().popup({
            theme: 'ios-dark',
        display: 'center'
        }).mobiscroll('getInst'),
        materialDemo = $('#demo-material').mobiscroll().popup({
            theme: 'material',
        display: 'center'
        }).mobiscroll('getInst'),
        materialDarkDemo = $('#demo-material-dark').mobiscroll().popup({
            theme: 'material-dark',
        display: 'center'
        }).mobiscroll('getInst'),
        windowsDemo = $('#demo-windows').mobiscroll().popup({
            theme: 'windows',
        display: 'center'
        }).mobiscroll('getInst'),
        windowsDarkDemo = $('#demo-windows-dark').mobiscroll().popup({
            theme: 'windows-dark',
        display: 'center'
        }).mobiscroll('getInst'),
        mobiscrollDemo = $('#demo-mobiscroll').mobiscroll().popup({
            theme: 'mobiscroll',
        display: 'center'
        }).mobiscroll('getInst'),
        mobiscrollDarkDemo = $('#demo-mobiscroll-dark').mobiscroll().popup({
            theme: 'mobiscroll-dark',
        display: 'center'
        }).mobiscroll('getInst');

    $('#show-ios').click(function () {
        iosDemo.show();
        return false;
    });

    $('#show-ios-dark').click(function () {
        iosDarkDemo.show();
        return false;
    });

    $('#show-material').click(function () {
        materialDemo.show();
        return false;
    });

    $('#show-material-dark').click(function () {
        materialDarkDemo.show();
        return false;
    });

    $('#show-windows').click(function () {
        windowsDemo.show();
        return false;
    });

    $('#show-windows-dark').click(function () {
        windowsDarkDemo.show();
        return false;
    });

    $('#show-mobiscroll').click(function () {
        mobiscrollDemo.show();
        return false;
    });

    $('#show-mobiscroll-dark').click(function () {
        mobiscrollDarkDemo.show();
        return false;
    });

});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Use it with any of the base themes: iOS, Android Material, Windows or Mobiscroll.</div>
    </div>
    <div class="mbsc-grid-fixed mbsc-grid-lg">
        <div class="mbsc-row">
            <div class="mbsc-col">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">iOS Theme</div>
                    <div class="mbsc-btn-group-block">
                        <button id="show-ios">iOS Light Theme</button>
                        <button id="show-ios-dark">iOS Dark Theme</button>
                    </div>
                </div>
            </div>
            <div class="mbsc-col">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Material Theme</div>
                    <div class="mbsc-btn-group-block">
                        <button id="show-material">Material Light Theme</button>
                        <button id="show-material-dark">Material Dark Theme</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="mbsc-row">
            <div class="mbsc-col">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Windows Theme</div>
                    <div class="mbsc-btn-group-block">
                        <button id="show-windows">Windows Light Theme</button>
                        <button id="show-windows-dark">Windows Dark Theme</button>
                    </div>
                </div>
            </div>
            <div class="mbsc-col">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Mobiscroll Theme</div>
                    <div class="mbsc-btn-group-block">
                        <button id="show-mobiscroll">Mobiscroll Light Theme</button>
                        <button id="show-mobiscroll-dark">Mobiscroll Dark Theme</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="demo-ios" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-ios-dark" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-material" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-material-dark" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-windows" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-windows-dark" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-mobiscroll" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

<div id="demo-mobiscroll-dark" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </div>
</div>

Popup - Event handlers

Change demo
Event handlers
JQuery Popup demo with event hooks for custom integration and functionality. Use event handlers to customize flows. For jQuery or jQuery Mobile.
Clear event log
EVENTS FIRED: 
mobiscroll.settings = {
    theme: '',
    lang: ''
};

$(function () {

    var popup = $('#demo').mobiscroll().popup({
        theme: '',
        lang: '',
        display: 'center',
        buttons: [{
                text: 'Ok',
                handler: 'set'
            },
            'cancel'
        ],
        onInit: function (event, inst) {
            // Your custom event handler goes here
        },
        onMarkupReady: function (event, inst) {
            // Your custom event handler goes here
        },
        onBeforeShow: function (event, inst) {
            // Your custom event handler goes here
        },
        onPosition: function (event, inst) {
            // Your custom event handler goes here
        },
        onShow: function (event, inst) {
            // Your custom event handler goes here
        },
        onDestroy: function (event, inst) {
            // Your custom event handler goes here
        },
        onClose: function (event, inst) {
            // Your custom event handler goes here
        },
        onCancel: function (event, inst) {
            // Your custom event handler goes here
        },
        onBeforeClose: function (event, inst) {
            // Your custom event handler goes here
        },
        onSet: function (event, inst) {
            // Your custom event handler goes here
        }
    }).mobiscroll('getInst');

    $('#show').click(function () {
        $('#demo').mobiscroll('show');
        return false;
    });

});
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-btn-group-block">
            <button id="show">Show popup</button>
        </div>
    </div>
</div>

<div id="demo" class="mbsc-cloak">
    <div class="mbsc-align-center mbsc-padding">
        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg">
        <h4>Welcome on our website!</h4>
        <p>Have fun navigating through the demos.</p>
    </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.

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

Extract the zip file and open the demo in your favorite browser. To install Mobiscroll in your project follow instructions from this page.


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

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 demos are using Babel's in-browser ES6 and JSX transformer. Extract the zip file and open the demo in your browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Demos
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
Bootstrap
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos