Select for Javascript

Learn more

Advanced select component for single and multiple value selection. Provides a great alternative to the native dropdown with enhanced UX.
Can be used on mobiscroll form elements or on any input, select and field.

Shipping with useful features:

  • Single or multiple value selection
  • Group header and list segmentation
  • On demand rendering for long lists
  • Built in support for invalids and un-selectable values
  • Filtering and autocomplete with type ahead
  • Circular wheels
  • Multiple theme support
  • Modal, popup and inline display support
  • RTL Support
  • Full localization


Interested in scroller controls? Other demos that could be useful:

Treelist Image scroller Scroller


Select demos available for other frameworks.

Viewing demos & code for

light
dark

Change the theme setting here

Select - Mobile & Desktop usage

Change demo
Mobile & Desktop usage

Use the select for both mobile and desktop or set it up responsively. The main difference between the two rendering modes - controlled by the touchUi setting - is how the component is laid out. When set to false the component shows up suitable for larger screens and pointer interaction while setting it to true renders it suitable for touch screens.

Handle different screen sizes by setting it up responsively  Check out the responsive demo →
mobiscroll.settings = {
    lang: '',
    theme: ''
};

mobiscroll.select('#demo-mobile', {
    display: 'bubble'
});

mobiscroll.select('#demo-desktop', {
    display: 'bubble',
    touchUi: false
});
<div mbsc-form>
    <div class="mbsc-grid mbsc-form-grid">
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <label>
                    Mobile
                    <select id="demo-mobile" data-input-style="box">
                        <option value="1">Atlanta</option>
                        <option value="2">Berlin</option>
                        <option value="3">Boston</option>
                        <option value="4">Chicago</option>
                        <option value="5">London</option>
                        <option value="6">Los Angeles</option>
                        <option value="7">New York</option>
                        <option value="8">Paris</option>
                        <option value="9">San Francisco</option>
                    </select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <label>
                    Desktop
                    <select id="demo-desktop" data-input-style="box">
                        <option value="1">Atlanta</option>
                        <option value="2">Berlin</option>
                        <option value="3">Boston</option>
                        <option value="4">Chicago</option>
                        <option value="5">London</option>
                        <option value="6">Los Angeles</option>
                        <option value="7">New York</option>
                        <option value="8">Paris</option>
                        <option value="9">San Francisco</option>
                    </select>
                </label>
            </div>
        </div>
    </div>
</div>

Select - App & Website usage

Change demo
App & Website usage

Use it on any custom input or with Mobiscroll form fields. The select is shown on input focus, but it can also be triggered on a button click or it can be embedded directly into the page.

Let’s say you already have a form and you want a custom dropdown. You can use it on existing fields or new fields.

mobiscroll.settings = {
    lang: '',
    theme: ''
};

var data = [{
    value: 1,
    text: 'Atlanta'
}, {
    value: 2,
    text: 'Berlin'
}, {
    value: 3,
    text: 'Boston'
}, {
    value: 4,
    text: 'Chicago'
}, {
    value: 5,
    text: 'London'
}, {
    value: 6,
    text: 'Los Angeles'
}, {
    value: 7,
    text: 'New York'
}, {
    value: 8,
    text: 'Paris'
}, {
    value: 9,
    text: 'San Francisco'
}];

mobiscroll.form('#demo-app-website-form', {
    inputStyle: 'box'
});

mobiscroll.select('#demo-app-select', {
    data: data,
    display: 'bubble'
});

mobiscroll.select('#demo-app-select-header', {
    data: data,
    display: 'bubble',
    headerText: 'Pick location'
});


mobiscroll.select('#demo-app-select-non-form', {
    data: data,
    display: 'bubble',
    inputClass: 'demo-non-form'
});

var instance = mobiscroll.select('#demo-app-select-external', {
    data: data,
    display: 'bubble',
    inputClass: 'demo-non-form',
    showOnTap: false,
    showOnFocus: false
});

document
    .getElementById('show-demo-app-select-external')
    .addEventListener('click', function () {
        instance.show();
    }, false);
<div id="demo-app-website-form">
    <div class="mbsc-grid mbsc-form-grid">
        <div class="mbsc-form-group">
            <div class="mbsc-form-group-title">Using the Select with Mobiscroll form fields</div>
            <div class="mbsc-row">
                <div class="mbsc-col-sm-12 mbsc-col-md-6">
                    <label>
                        Select
                        <select id="demo-app-select"></select>
                    </label>
                </div>
                <div class="mbsc-col-sm-12 mbsc-col-md-6">
                    <label>
                        Header text
                        <select id="demo-app-select-header"></select>
                    </label>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="mbsc-grid">
    <div class="mbsc-row">
        <div class="mbsc-col-sm-12 mbsc-col-md-6">
            <label for="demo-app-select-non-form">Select</label>
            <select id="demo-app-select-non-form"></select>
        </div>
        <div class="mbsc-col-sm-12 mbsc-col-md-6">
            <div class="mbsc-row mbsc-align-items-end">
                <div class="mbsc-col-9">
                    <label for="demo-app-select-external">Show on button click only</label>
                    <select id="demo-app-select-external"></select>
                </div>
                <div class="mbsc-col-3 external-container">
                    <button id="show-demo-app-select-external" class="external-button">Show</button>
                </div>
            </div>
        </div>
    </div>
</div>
.demo-non-form {
    color: initial;
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: arial, verdana, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.demo-container {
    padding: 0 1em;
}

.external-container {
    display: flex;
}

.external-container button.external-button {
    font-weight: 400;
    padding: 10px;
    margin: 6px 0 13px 0;
    width: 100%;
}

Select - Mobile display modes

Change demo
Mobile display modes

Different display modes can be used for mobile and desktop. On mobile, the select can be rendered at the top or bottom of the screen, in the center of the screen, anchored to an input or any object for that matter and it can also be embedded in any inline content.

Interested in desktop usage?  Check out the next example →
mobiscroll.settings = {
    lang: '',
    theme: ''
};

mobiscroll.form('#demo-form');

mobiscroll.select('#demo', {
    display: 'bottom'
});

mobiscroll.select('#demo-top', {
    display: 'top'
});

mobiscroll.select('#demo-center', {
    display: 'center'
});

mobiscroll.select('#demo-bubble', {
    display: 'bubble'
});

mobiscroll.select('#demo-inline', {
    display: 'inline',
    showInput: false
});
<div id="demo-form">
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Try different display modes</div>
        <label>
            Bottom
            <select name="City" id="demo">
                <option value="1">Atlanta</option>
                <option value="2">Berlin</option>
                <option value="3">Boston</option>
                <option value="4">Chicago</option>
                <option value="5">London</option>
                <option value="6">Los Angeles</option>
                <option value="7">New York</option>
                <option value="8">Paris</option>
                <option value="9">San Francisco</option>
            </select>
        </label>
        <label>
            Top
            <select name="City" id="demo-top">
                <option value="1">Atlanta</option>
                <option value="2">Berlin</option>
                <option value="3">Boston</option>
                <option value="4">Chicago</option>
                <option value="5">London</option>
                <option value="6">Los Angeles</option>
                <option value="7">New York</option>
                <option value="8">Paris</option>
                <option value="9">San Francisco</option>
            </select>
        </label>
        <label>
            Center
            <select name="City" id="demo-center">
                <option value="1">Atlanta</option>
                <option value="2">Berlin</option>
                <option value="3">Boston</option>
                <option value="4">Chicago</option>
                <option value="5">London</option>
                <option value="6">Los Angeles</option>
                <option value="7">New York</option>
                <option value="8">Paris</option>
                <option value="9">San Francisco</option>
            </select>
        </label>
        <label>
            Bubble
            <select name="City" id="demo-bubble">
                <option value="1">Atlanta</option>
                <option value="2">Berlin</option>
                <option value="3">Boston</option>
                <option value="4">Chicago</option>
                <option value="5">London</option>
                <option value="6">Los Angeles</option>
                <option value="7">New York</option>
                <option value="8">Paris</option>
                <option value="9">San Francisco</option>
            </select>
        </label>
    </div>
    <div class="mbsc-form-group mbsc-padding">
        <p class="mbsc-thin">With inline display you can embed the Select component in almost any markup or form.</p>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Embedded select scroller</div>
        <div>
            <select name="City" id="demo-inline" data-enhance="false">
                <option value="1">Atlanta</option>
                <option value="2">Berlin</option>
                <option value="3">Boston</option>
                <option value="4">Chicago</option>
                <option value="5">London</option>
                <option value="6">Los Angeles</option>
                <option value="7">New York</option>
                <option value="8">Paris</option>
                <option value="9">San Francisco</option>
            </select>
        </div>
    </div>
</div>

Select - Desktop display modes

Change demo
Desktop display modes

Use the available display modes on mobile and desktop. On larger screens you have slightly different rendering options suitable for the large form-factor and pointer interaction. Use the top, bottom and center modes for getting it in front of the users or stay in context and anchor it to the input.

Interested in mobile usage?  Check out the previous example →
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var myData = {
    url: 'https://trial.mobiscroll.com/airports/',
    remoteFilter: true,
    dataType: 'jsonp',
    processResponse: function (data) {
        var i,
            item,
            ret = [];

        if (data) {
            for (i = 0; i < data.length; i++) {
                item = data[i];
                ret.push({
                    value: item.code,
                    text: item.name,
                    html: '<div style="font-size:16px;line-height:18px;">' + item.name + '</div><div style="font-size:10px;line-height:12px;">' + item.location + ', ' + item.code + '</div>'
                });
            }
        }

        return ret;
    }
};

mobiscroll.select('#demo-single', {
    touchUi: false
});

mobiscroll.select('#demo-multi', {
    touchUi: false
});

mobiscroll.select('#demo-group', {
    touchUi: false
});

mobiscroll.select('#demo-wheel', {
    group: true,
    touchUi: false
});

mobiscroll.select('#demo-remote', {
    placeholder: 'Please select',
    display: 'center',
    multiline: 2,
    height: 50,
    data: myData,
    touchUi: false,
    filter: true
});

mobiscroll.select('#demo-input', {
    touchUi: false
});

mobiscroll.select('#demo-center', {
    display: 'center',
    touchUi: false
});

mobiscroll.select('#demo-top', {
    display: 'top',
    touchUi: false
});

mobiscroll.select('#demo-bottom', {
    display: 'bottom',
    touchUi: false
});

mobiscroll.select('#demo-set', {
    display: 'center',
    touchUi: false,
    buttons: ['set']
});

mobiscroll.select('#demo-set-cancel', {
    display: 'center',
    touchUi: false,
    buttons: ['set', 'cancel']
});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">The Select component can be used on mobile and desktop. See desktop functionality below.</div>
    </div>
    <div class="mbsc-grid">
        <div class="mbsc-row mbsc-justify-content-center">
            <div class="mbsc-col-sm-9 mbsc-col-md-7 mbsc-col-xl-5">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Basic usage</div>
                    <label>
                        Single select
                        <select name="City" id="demo-single">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                        Multi-select
                        <select name="Category" id="demo-multi" multiple>
                            <option value="1">Books</option>
                            <option value="2">Movies, Music & Games</option>
                            <option value="3" selected>Electronics & Computers</option>
                            <option value="4" selected>Home, Garden & Tools</option>
                            <option value="5">Health & Beauty</option>
                            <option value="6">Toys, Kids & Baby</option>
                            <option value="7">Clothing & Jewelry</option>
                            <option value="8">Sports & Outdoors</option>
                        </select>
                    </label>
                </div>
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Pop-up positioning</div>
                    <label>
                            Top
                        <select name="City" id="demo-top">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                            Bottom
                        <select name="City" id="demo-bottom">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                            Anchored
                        <select name="City" id="demo-input">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                            Center
                        <select name="City" id="demo-center">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                </div>
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Group select & segmentation</div>
                    <label>
                        Group select
                        <select id="demo-group">
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                    <label>
                        Group wheel
                        <select id="demo-wheel">
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                </div>
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Filtering & autocomplete</div>
                    <label>
                        Remote data
                        <select id="demo-remote"></select>
                    </label>
                </div>
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">With buttons</div>
                    <label>
                        Set button
                        <select name="City" id="demo-set" placeholder="Please select...">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                        Set/Cancel
                        <select name="City" id="demo-set-cancel" placeholder="Please select...">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                </div>
            </div>
        </div>
    </div>
</div>

Select - Responsive

Change demo
Responsive

Use the select dropdown responsively. You can set positioning and rendering based on the screen size. Having a bottom positioned select on mobile, a popover anchored to the input on tablet and desktop display on large sceens is simple.

All this can be configured under the responsive setting where you pass the options for each breakpoint.

responsive: {
    xsmall: { ... }, small: { ... }, medium: { ... }, large: { ... }, xlarge: { ... }
}

mobiscroll.settings = {
    lang: '',
    theme: ''
};

var myData = {
    url: 'https://trial.mobiscroll.com/airports/',
    remoteFilter: true,
    dataType: 'jsonp',
    processResponse: function (data) {
        var i,
            item,
            ret = [];

        if (data) {
            for (i = 0; i < data.length; i++) {
                item = data[i];
                ret.push({
                    value: item.code,
                    text: item.name,
                    html: '<div style="font-size:16px;line-height:18px;">' + item.name + '</div><div style="font-size:10px;line-height:12px;">' + item.location + ', ' + item.code + '</div>'
                });
            }
        }

        return ret;
    }
};

mobiscroll.select('#demo-single', {
    responsive: {
        small: {
            display: 'bubble'
        },
        medium: {
            touchUi: false
        }
    }
});

mobiscroll.select('#demo-multi', {
    responsive: {
        small: {
            display: 'bubble'
        },
        medium: {
            touchUi: false
        }
    }
});

mobiscroll.select('#demo-group', {
    responsive: {
        small: {
            display: 'bubble'
        },
        medium: {
            touchUi: false
        }
    }
});

mobiscroll.select('#demo-wheel', {
    group: true,
    responsive: {
        small: {
            display: 'bubble'
        },
        medium: {
            touchUi: false
        }
    }
});

mobiscroll.select('#demo-remote', {
    placeholder: 'Please select',
    display: 'center',
    multiline: 2,
    height: 50,
    data: myData,
    filter: true,
    responsive: {
        small: {
            display: 'bubble'
        },
        medium: {
            touchUi: false
        }
    }
});
<div mbsc-form>
    <div class="mbsc-grid">
        <div class="mbsc-row mbsc-justify-content-center">
            <div class="mbsc-col-sm-9 mbsc-col-md-7 mbsc-col-xl-5">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Basic usage</div>
                    <label>
                        Single select
                        <select name="City" id="demo-single">
                            <option value="1">Atlanta</option>
                            <option value="2">Berlin</option>
                            <option value="3">Boston</option>
                            <option value="4">Chicago</option>
                            <option value="5">London</option>
                            <option value="6">Los Angeles</option>
                            <option value="7">New York</option>
                            <option value="8">Paris</option>
                            <option value="9">San Francisco</option>
                        </select>
                    </label>
                    <label>
                        Multi-select
                        <select name="Category" id="demo-multi" multiple>
                            <option value="1">Books</option>
                            <option value="2">Movies, Music & Games</option>
                            <option value="3" selected>Electronics & Computers</option>
                            <option value="4" selected>Home, Garden & Tools</option>
                            <option value="5">Health & Beauty</option>
                            <option value="6">Toys, Kids & Baby</option>
                            <option value="7">Clothing & Jewelry</option>
                            <option value="8">Sports & Outdoors</option>
                        </select>
                    </label>
                </div>
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Group select & segmentation</div>
                    <label>
                        Group select
                        <select id="demo-group">
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                    <label>
                        Group wheel
                        <select id="demo-wheel">
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                </div>
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Filtering & autocomplete</div>
                    <label>
                            Remote data
                            <select id="demo-remote"></select>
                        </label>
                </div>
            </div>
        </div>
    </div>
</div>

Select - Multiple select

Change demo
Multiple select
Javascript Multiple select demo for product or category filtering. Visible selection with check mark in picker control. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

mobiscroll.select('#demo-multiple', {
    display: 'bubble'
});

mobiscroll.select('#demo-multiple-group', {
    display: 'bubble',
    label: 'Name',
    group: true,
    groupLabel: '&nbsp;'
});

mobiscroll.select('#demo-multiple-desktop', {
    touchUi: false
});
<div mbsc-form>
    <div class="mbsc-grid mbsc-form-grid">
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-4">
                <label>
                    Multi-select
                    <select name="Category" id="demo-multiple" multiple data-input-style="box" data-label-style="stacked">
                        <option value="1">Books</option>
                        <option value="2">Movies, Music & Games</option>
                        <option value="3" selected>Electronics & Computers</option>
                        <option value="4" selected>Home, Garden & Tools</option>
                        <option value="5">Health & Beauty</option>
                        <option value="6">Toys, Kids & Baby</option>
                        <option value="7">Clothing & Jewelry</option>
                        <option value="8">Sports & Outdoors</option>
                    </select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4">
                <label>
                    Group options
                    <select id="demo-multiple-group" multiple data-input-style="box" data-label-style="stacked">
                        <optgroup label="A">
                            <option value="0">Adaline Shiver</option>
                            <option value="1" selected>Adella Cornell</option>
                            <option value="2" selected>Adolph Scriber</option>
                            <option value="3" disabled>Adrianna Merritt</option>
                            <option value="4" disabled>Adrianne Marotta</option>
                        </optgroup>
                        <optgroup label="B">
                            <option value="78">Barbara Mackay</option>
                            <option value="79">Barbera Phu</option>
                            <option value="80">Barbie Kaczorowski</option>
                            <option value="81">Barney Flurry</option>
                            <option value="82">Beatriz Remer</option>
                        </optgroup>
                        <!-- Showing partial data. Download full source. -->
                    </select>
                    <!--extra-->
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4">
                <label>
                    Desktop
                    <select name="Category" id="demo-multiple-desktop" multiple data-input-style="box" data-label-style="stacked">
                        <option value="1">Books</option>
                        <option value="2">Movies, Music & Games</option>
                        <option value="3" selected>Electronics & Computers</option>
                        <option value="4" selected>Home, Garden & Tools</option>
                        <option value="5">Health & Beauty</option>
                        <option value="6">Toys, Kids & Baby</option>
                        <option value="7">Clothing & Jewelry</option>
                        <option value="8">Sports & Outdoors</option>
                    </select>
                </label>
            </div>
        </div>
    </div>
</div>

Select - Group options

Change demo
Group options
Javascript Select with group options and headers rendered as a hierarchy. With native look & feel, improved UX and source code. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

mobiscroll.form('#demo-group-options-form', {
    inputStyle: 'box',
    labelStyle: 'stacked'
});

mobiscroll.select('#demo-group-options-select-desktop', {
    display: 'bubble',
    touchUi: false
});

mobiscroll.select('#demo-group-options-wheel-desktop', {
    display: 'bubble',
    group: true,
    touchUi: false
});


mobiscroll.select('#demo-group-options-multiple-desktop', {
    display: 'bubble',
    group: true,
    touchUi: false
});

mobiscroll.select('#demo-group-options-select', {
    display: 'bubble'
});

mobiscroll.select('#demo-group-options-wheel', {
    display: 'bubble',
    group: true
});


mobiscroll.select('#demo-group-options-multiple', {
    display: 'bubble',
    group: true
});
<div id="demo-group-options-form">
    <div class="mbsc-grid mbsc-form-grid">
        <div class="mbsc-form-group">
            <div class="mbsc-form-group-title">Use it on desktop</div>
            <div class="mbsc-row">
                <div class="mbsc-col-sm-12 mbsc-col-md-4">
                    <label>
                        Group select
                        <select id="demo-group-options-select-desktop">
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                </div>
                <div class="mbsc-col-sm-12 mbsc-col-md-4">
                    <label>
                        Group wheel
                        <select id="demo-group-options-wheel-desktop">
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                </div>
                <div class="mbsc-col-sm-12 mbsc-col-md-4">
                    <label>
                        Multiple select
                        <select id="demo-group-options-multiple-desktop" multiple>
                            <optgroup label="A">
                                <option value="0">Adaline Shiver</option>
                                <option value="1" selected>Adella Cornell</option>
                                <option value="2" selected>Adolph Scriber</option>
                                <option value="3" disabled>Adrianna Merritt</option>
                                <option value="4" disabled>Adrianne Marotta</option>
                            </optgroup>
                            <optgroup label="B">
                                <option value="78">Barbara Mackay</option>
                                <option value="79">Barbera Phu</option>
                                <option value="80">Barbie Kaczorowski</option>
                                <option value="81">Barney Flurry</option>
                                <option value="82">Beatriz Remer</option>
                            </optgroup>
                            <!-- Showing partial data. Download full source. -->
                        </select>
                        <!--extra-->
                    </label>
                </div>
            </div>
        </div>
        <div class="mbsc-form-group">
            <div class="mbsc-form-group-title">Use it on mobile</div>
            <div class="mbsc-row">
                <div class="mbsc-col-sm-12 mbsc-col-md-4">
                    <label>
                        Group select
                        <select id="demo-group-options-select">
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                </div>
                <div class="mbsc-col-sm-12 mbsc-col-md-4">
                    <label>
                        Group wheel
                        <select id="demo-group-options-wheel">
                            <optgroup label="USA">
                                <option value="1">Atlanta</option>
                                <option value="2">Boston</option>
                                <option value="3">Chicago</option>
                                <option value="4">Los Angeles</option>
                                <option value="5">New York</option>
                                <option value="6">San Francisco</option>
                            </optgroup>
                            <optgroup label="UK">
                                <option value="7">Bath</option>
                                <option value="8">Bristol</option>
                                <option value="9">Cambridge</option>
                                <option value="10">London</option>
                                <option value="11">Leeds</option>
                                <option value="12">Manchester</option>
                                <option value="13">Newcastle</option>
                                <option value="14">Oxford</option>
                            </optgroup>
                            <optgroup label="China">
                                <option value="15">Beijing</option>
                                <option value="16">Chongqing</option>
                                <option value="17">Shanghai</option>
                                <option value="18">Shenzhen</option>
                                <option value="19">Tianjin</option>
                            </optgroup>
                        </select>
                    </label>
                </div>
                <div class="mbsc-col-sm-12 mbsc-col-md-4">
                    <label>
                        Multiple select
                        <select id="demo-group-options-multiple" multiple>
                            <optgroup label="A">
                                <option value="0">Adaline Shiver</option>
                                <option value="1" selected>Adella Cornell</option>
                                <option value="2" selected>Adolph Scriber</option>
                                <option value="3" disabled>Adrianna Merritt</option>
                                <option value="4" disabled>Adrianne Marotta</option>
                            </optgroup>
                            <optgroup label="B">
                                <option value="78">Barbara Mackay</option>
                                <option value="79">Barbera Phu</option>
                                <option value="80">Barbie Kaczorowski</option>
                                <option value="81">Barney Flurry</option>
                                <option value="82">Beatriz Remer</option>
                            </optgroup>
                            <!-- Showing partial data. Download full source. -->
                        </select>
                        <!--extra-->
                    </label>
                </div>
            </div>
        </div>
    </div>
</div>

Select - Multi level hierarchy

Change demo
Multi level hierarchy
Javascript Hierarchical select example with local or remote data. Dynamically populate linked lists based on previous selection. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var reg,
    div,
    sub,
    remoteReg,
    remoteDiv,
    remoteSub,
    emptyValue = { value: '', text: '', disabled: true },
    regions = [
        { value: 1, text: 'Northeast' },
        { value: 2, text: 'Midwest' },
        { value: 3, text: 'South' },
        { value: 4, text: 'West' }
    ],
    divisions = {
        1: [
            { value: 1, text: 'New England' },
            { value: 2, text: 'Mid-Atlantic' }
        ],
        2: [
            { value: 3, text: 'East North Central' },
            { value: 4, text: 'West North Central' }
        ],
        3: [
            { value: 5, text: 'South Atlantic' },
            { value: 6, text: 'East South Central' },
            { value: 7, text: 'West South Central' }
        ],
        4: [
            { value: 8, text: 'Mountain' },
            { value: 9, text: 'Pacific' }
        ]
    },
    subdivisions = {
        1: [
            { value: 1, text: 'Connecticut' },
            { value: 2, text: 'Maine' },
            { value: 3, text: 'Massachusetts' },
            { value: 4, text: 'New Hampshire' },
            { value: 5, text: 'Rhode Island' },
            { value: 6, text: 'Vermont' }
        ],
        2: [
            { value: 7, text: 'New Jersey' },
            { value: 8, text: 'New York' },
            { value: 9, text: 'Pennsylvania' }
        ],
        3: [
            { value: 10, text: 'Illinois' },
            { value: 11, text: 'Indiana' },
            { value: 12, text: 'Michigan' },
            { value: 13, text: 'Ohio' }
        ],
        4: [
            { value: 14, text: 'Wisconsin' },
            { value: 15, text: 'Iowa' },
            { value: 16, text: 'Kansas' },
            { value: 17, text: 'Minnesota' },
            { value: 18, text: 'Missouri' },
            { value: 19, text: 'Nebraska' },
            { value: 20, text: 'North Dakota' },
            { value: 21, text: 'South Dakota' }
        ],
        5: [
            { value: 22, text: 'Delaware' },
            { value: 23, text: 'Florida' },
            { value: 24, text: 'Georgia' },
            { value: 25, text: 'Maryland' },
            { value: 26, text: 'North Carolina' },
            { value: 27, text: 'South Carolina' },
            { value: 28, text: 'Virginia' },
            { value: 29, text: 'District of Columbia' },
            { value: 30, text: 'West Virginia' }
        ],
        6: [
            { value: 31, text: 'Alabama' },
            { value: 32, text: 'Kentucky' },
            { value: 33, text: 'Mississippi' },
            { value: 34, text: 'Tennessee' }
        ],
        7: [
            { value: 35, text: 'Arkansas' },
            { value: 36, text: 'Louisiana' },
            { value: 37, text: 'Oklahoma' },
            { value: 38, text: 'Texas' }
        ],
        8: [
            { value: 39, text: 'Arizona' },
            { value: 40, text: 'Colorado' },
            { value: 41, text: 'Idaho' },
            { value: 42, text: 'Montana' },
            { value: 43, text: 'Nevada' },
            { value: 44, text: 'New Mexico' },
            { value: 45, text: 'Utah' },
            { value: 46, text: 'Wyoming' }
        ],
        9: [
            { value: 47, text: 'Alaska' },
            { value: 48, text: 'California' },
            { value: 49, text: 'Hawaii' },
            { value: 50, text: 'Oregon' },
            { value: 51, text: 'Washington' }
        ]
    };

function getData(region, division) {
    var arr;

    if (division) {
        arr = subdivisions[division];
    } else if (region) {
        arr = divisions[region];
    } else {
        arr = regions;
    }

    return arr;
}

reg = mobiscroll.select('#demo-data-reg', {
    touchUi: false,
    placeholder: 'Please select...',
    data: getData(),
    onSet: function (ev, inst) {
        div.settings.invalid.length = 0
        div.setVal('', true);
        div.refresh(getData(inst.getVal()));
        div.enable();

        sub.settings.invalid.length = 0;
        sub.setVal('', true);
        sub.refresh([emptyValue]);
        sub.disable();
    }
});

div = mobiscroll.select('#demo-data-div', {
    touchUi: false,
    disabled: true,
    placeholder: 'Please select...',
    data: [emptyValue],
    onSet: function (ev, inst) {
        sub.settings.invalid.length = 0;
        sub.setVal('', true);
        sub.refresh(getData(null, inst.getVal()));
        sub.enable();
    }
});

sub = mobiscroll.select('#demo-data-sub', {
    touchUi: false,
    disabled: true,
    placeholder: 'Please select...',
    data: [emptyValue]
});

remoteReg = mobiscroll.select('#demo-remote-reg', {
    touchUi: false,
    placeholder: 'Please select...',
    data: {
        url: 'https://trial.mobiscroll.com/regions/',
        dataType: 'jsonp'
    },
    onSet: function (ev, inst) {
        remoteDiv.settings.invalid.length = 0
        remoteDiv.settings.data.url = 'https://trial.mobiscroll.com/divisions/?reg=' + (inst.getVal());
        remoteDiv.setVal('', true);
        remoteDiv.refresh();
        remoteDiv.enable();

        remoteSub.settings.invalid.length = 0;
        remoteSub.setVal('', true);
        remoteSub.disable();
    }
});

remoteDiv = mobiscroll.select('#demo-remote-div', {
    touchUi: false,
    disabled: true,
    placeholder: 'Please select...',
    data: {
        url: 'https://trial.mobiscroll.com/divisions/',
        dataType: 'jsonp'
    },
    onSet: function (ev, inst) {
        remoteSub.settings.invalid.length = 0;
        remoteSub.settings.data.url = 'https://trial.mobiscroll.com/subdivisions/?div=' + (inst.getVal());
        remoteSub.setVal('', true);
        remoteSub.refresh();
        remoteSub.enable();
    }
});

remoteSub = mobiscroll.select('#demo-remote-sub', {
    touchUi: false,
    disabled: true,
    placeholder: 'Please select...',
    data: {
        url: 'https://trial.mobiscroll.com/subdivisions/',
        dataType: 'jsonp'
    }
});
<div mbsc-form>
    <div class="mbsc-grid mbsc-grid-fixed">
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Data object</div>
                    <label>
                        Region
                        <select id="demo-data-reg"></select>
                    </label>
                    <label>
                        Division
                        <select id="demo-data-div" disabled></select>
                    </label>
                    <label>
                        Subdivision
                        <select id="demo-data-sub" disabled></select>
                    </label>
                </div>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Remote data</div>
                    <label>
                        Region
                        <select id="demo-remote-reg"></select>
                    </label>
                    <label>
                        Division
                        <select id="demo-remote-div" disabled></select>
                    </label>
                    <label>
                        Subdivision
                        <select id="demo-remote-sub" disabled></select>
                    </label>
                </div>
            </div>
        </div>
    </div>
</div>

Select - Autocomplete

Change demo
Autocomplete
Javascript Select auto-complete demo with filtering and type-ahead functionality. Load values from markup or remote JSON service. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var names = [{
            text: "Abigail Hodges",
            value: 1
        }, {
            text: "Adam Robertson",
            value: 2
        }, {
            text: "Adrian Mackay",
            value: 3
        }, {
            text: "Adrian Springer",
            value: 4
        },
        // Showing partial data. Download full source.
    ],
    myData = {
        url: 'https://trial.mobiscroll.com/airports/',
        remoteFilter: true,
        dataType: 'jsonp',
        processResponse: function (data) {
            var i,
                item,
                ret = [];

            if (data) {
                for (i = 0; i < data.length; i++) {
                    item = data[i];
                    ret.push({
                        value: item.code,
                        text: item.name,
                        html: '<div style="font-size:16px;line-height:18px;">' + item.name + '</div><div style="font-size:10px;line-height:12px;">' + item.location + ', ' + item.code + '</div>'
                    });
                }
            }

            return ret;
        }
    };

mobiscroll.select('#demo-autocomplete', {
    display: 'center',
    data: names,
    filter: true,
    placeholder: 'Please Select...'
});

mobiscroll.select('#demo-autocomplete-remote', {
    display: 'center',
    multiline: 2,
    height: 50,
    data: myData,
    filter: true,
    placeholder: 'Please Select...'
});
<div mbsc-form>
    <div class="mbsc-grid mbsc-form-grid">
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <label>
                    Local data
                    <select id="demo-autocomplete" data-input-style="box"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <label>
                    Remote data
                    <select id="demo-autocomplete-remote" data-input-style="box"></select>
                </label>
            </div>
        </div>
    </div>
</div>
.demo-non-form {
    color: initial;
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: arial, verdana, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.demo-container {
    padding: 0 1em;
}

Select - Data source

Change demo
Data source
Javascript Select scroller demo with various data sources: native html select, data objects and remote json data sources. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

// Make sure to run it on a web server when trying this demo locally!

mobiscroll.select('#demo-data-source', {
    touchUi: false
});

mobiscroll.select('#demo-data-source-data-object', {
    touchUi: false,
    placeholder: 'Please Select...',
    data: [{
        value: 1,
        text: 'Atlanta',
        selected: true
    }, {
        value: 2,
        text: 'Berlin'
    }, {
        value: 3,
        text: 'Boston'
    }, {
        value: 4,
        text: 'Chicago'
    }, {
        value: 5,
        text: 'London'
    }, {
        value: 6,
        text: 'Los Angeles'
    }, {
        value: 7,
        text: 'New York'
    }, {
        value: 8,
        text: 'Paris'
    }, {
        value: 9,
        text: 'San Francisco'
    }]
});


mobiscroll.select('#demo-data-source-remote', {
    touchUi: false,
    placeholder: 'Please Select...',
    data: {
        url: 'https://trial.mobiscroll.com/content/languages.json',
        type: 'json'
    },
    maxWidth: 300
});
<div mbsc-form>
    <div class="mbsc-grid mbsc-form-grid">
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-4">
                <label>
                    HTML
                    <select id="demo-data-source" data-input-style="box" data-label-style="stacked">
                        <option value="1">Atlanta</option>
                        <option value="2">Berlin</option>
                        <option value="3">Boston</option>
                        <option value="4">Chicago</option>
                        <option value="5">London</option>
                        <option value="6">Los Angeles</option>
                        <option value="7">New York</option>
                        <option value="8">Paris</option>
                        <option value="9">San Francisco</option>
                    </select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4">
                <label>
                    Data object
                    <select id="demo-data-source-data-object" data-input-style="box" data-label-style="stacked"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4">
                <label>
                    Remote data
                    <select id="demo-data-source-remote" data-input-style="box" data-label-style="stacked"></select>
                </label>
            </div>
        </div>
    </div>
</div>

Select - Large datasource

Change demo
Large datasource
Javascript Select scroller and dropdown examples for loading and working with large data sets. Segment data or load from remote api. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

mobiscroll.select('#demo-huge-data', {
    display: 'bubble'
});

mobiscroll.select('#demo-huge-data-remote', {
    display: 'bubble',
    placeholder: 'Please Select...',
    data: {
        url: 'https://trial.mobiscroll.com/content/names.json',
        type: 'json'
    }
});
<div mbsc-form>
    <div class="mbsc-grid mbsc-form-grid">
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <label>
                    HTML
                    <select id="demo-huge-data" data-input-style="box">
                        <option value="0">Adaline Shiver</option>
                        <option value="1">Adella Cornell</option>
                        <option value="2">Adolph Scriber</option>
                        <option value="3">Adrianna Merritt</option>
                        <option value="4">Adrianne Marotta</option>
                        <option value="5">Adrien Laycock</option>
                        <option value="6">Adrien Wiggins</option>
                        <option value="7">Agustin Vert</option>
                        <option value="8">Aisha Oritz</option>
                        <option value="9">Alaine Mikesell</option>
                    </select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <label>
                    Remote
                    <select id="demo-huge-data-remote" data-input-style="box"></select>
                </label>
            </div>
        </div>
    </div>
</div>

Select - Multiline select

Change demo
Multiline select
Javascript Select scroller style demo supporting long text rendered in multiple rows. With smooth scrolling and native look & feel. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

mobiscroll.select('#demo-multiple-lines', {
    display: 'bubble',
    multiline: 3,
    height: 50
});

mobiscroll.select('#demo-multiple-lines-desktop', {
    display: 'bubble',
    touchUi: false,
    multiline: 3,
    height: 50
});
<div mbsc-form>
    <div class="mbsc-grid mbsc-form-grid">
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <label>
                    Mobile
                    <select name="City" id="demo-multiple-lines" data-input-style="box" data-label-style="stacked">
                        <option value="1">Percentage of assets covered by systematic risk assessments (>99)</option>
                        <option value="2">Number of personal vacancies in the security roles required for ISMS (Nil)</option>
                        <option value="3">Time taken to grant, change and remove access privileges (Max. 2 hours)</option>
                        <option value="4">Percentage of agents covered by an effective security awareness program (100%)</option>
                        <option value="5">Number of security access violations (<2)</option>
                        <option value="6">Number of emergency changes (<5)</option>
                        <option value="7">Number of security incidents involving malicious code (Max. 2)</option>
                        <option value="8">Number of systems where security requirements are not met (Max. 2)</option>
                        <option value="9">Average turnaround time of incidents (Max. 2 hours)</option>
                        <option value="10">Number of pending actions to meet response and recovery requirements (Max. 5)</option>
                        <option value="11">Number of scheduled internal audits not done (Max. 1)</option>
                        <option value="12">Number of scheduled penetration tests not done (Max. 1)</option>
                        <option value="13">Number of overdue actions arising out of audit reports (Max. 5)</option>
                        <option value="14">Number of changes not carried out as per change control procedure (Max. 1)</option>
                    </select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <label>
                    Desktop
                    <select name="City" id="demo-multiple-lines-desktop" data-input-style="box" data-label-style="stacked">
                        <option value="1">Percentage of assets covered by systematic risk assessments (>99)</option>
                        <option value="2">Number of personal vacancies in the security roles required for ISMS (Nil)</option>
                        <option value="3">Time taken to grant, change and remove access privileges (Max. 2 hours)</option>
                        <option value="4">Percentage of agents covered by an effective security awareness program (100%)</option>
                        <option value="5">Number of security access violations (<2)</option>
                        <option value="6">Number of emergency changes (<5)</option>
                        <option value="7">Number of security incidents involving malicious code (Max. 2)</option>
                        <option value="8">Number of systems where security requirements are not met (Max. 2)</option>
                        <option value="9">Average turnaround time of incidents (Max. 2 hours)</option>
                        <option value="10">Number of pending actions to meet response and recovery requirements (Max. 5)</option>
                        <option value="11">Number of scheduled internal audits not done (Max. 1)</option>
                        <option value="12">Number of scheduled penetration tests not done (Max. 1)</option>
                        <option value="13">Number of overdue actions arising out of audit reports (Max. 5)</option>
                        <option value="14">Number of changes not carried out as per change control procedure (Max. 1)</option>
                    </select>
                </label>
            </div>
        </div>
    </div>
</div>

Select - Country Dropdown

Change demo
Country Dropdown
Javascript Country picker scroller select for mobile/tablet. Alphabetical ordering, jump to value and filtering is supported. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var remoteData = {
    url: 'https://trial.mobiscroll.com/content/countries.json',
    type: 'json'
};

mobiscroll.form('#demo-country-form', {
    inputStyle: 'box'
});

mobiscroll.select('#demo-country-filter', {
    display: 'bubble',
    data: remoteData,
    filter: true,
    group: {
        groupWheel: false,
        header: false
    },
    width: 400,
    placeholder: 'Please Select...'
});

mobiscroll.select('#demo-country-group', {
    display: 'bubble',
    data: remoteData,
    group: true,
    width: [40, 240],
    placeholder: 'Please Select...'
});

mobiscroll.select('#demo-country-filter-desktop', {
    display: 'bubble',
    touchUi: false,
    data: remoteData,
    filter: true,
    group: {
        groupWheel: false,
        header: false
    },
    width: 400,
    placeholder: 'Please Select...'
});

mobiscroll.select('#demo-country-group-desktop', {
    display: 'bubble',
    touchUi: false,
    data: remoteData,
    group: true,
    placeholder: 'Please Select...'
});
<div id="demo-country-form">
    <div class="mbsc-grid mbsc-form-grid">
        <div class="mbsc-form-group">
            <div class="mbsc-form-group-title">Use it on mobile</div>
            <div class="mbsc-row">
                <div class="mbsc-col-sm-12 mbsc-col-md-6">
                    <label>
                        Filter
                        <select id="demo-country-filter"></select>
                    </label>
                </div>
                <div class="mbsc-col-sm-12 mbsc-col-md-6">
                    <label>
                        Group select
                        <select id="demo-country-group"></select>
                    </label>
                </div>
            </div>
        </div>
        <div class="mbsc-form-group">
            <div class="mbsc-form-group-title">Use it on desktop</div>
            <div class="mbsc-row">
                <div class="mbsc-col-sm-12 mbsc-col-md-6">
                    <label>
                        Filter
                        <select id="demo-country-filter-desktop"></select>
                    </label>
                </div>
                <div class="mbsc-col-sm-12 mbsc-col-md-6">
                    <label>
                        Group select
                        <select id="demo-country-group-desktop"></select>
                    </label>
                </div>
            </div>
        </div>
    </div>
</div>
.demo-non-form {
    color: initial;
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: arial, verdana, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.demo-container {
    padding: 0 1em;
}

.external-container {
    display: flex;
}

.external-container button.external-button {
    font-weight: 400;
    padding: 10px;
    margin: 6px 0 12px 16px;
}

Select - Setting values

Change demo
Setting values
Javascript Select scroller demo with examples for programmatically setting values and defaults for single/multiple select. Plain JS api for usage everywhere.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

var cities = [{
    value: 1,
    text: 'Atlanta'
}, {
    value: 2,
    text: 'Berlin'
}, {
    value: 3,
    text: 'Boston'
}, {
    value: 4,
    text: 'Chicago'
}, {
    value: 5,
    text: 'London'
}, {
    value: 6,
    text: 'Los Angeles'
}, {
    value: 7,
    text: 'New York'
}, {
    value: 8,
    text: 'Paris'
}, {
    value: 9,
    text: 'San Francisco'
}];

mobiscroll.select('#demo-setting-values', {
    data: cities
});

mobiscroll.select('#demo-setting-values-default', {
    data: cities,
    defaultValue: 6
});

var instance = mobiscroll.select('#demo-setting-values-inline', {
    display: 'inline',
    data: cities,
    showInput: false
});

mobiscroll.select('#demo-setting-values-custom', {
    data: cities,
    select: 'multiple',
    buttons: [{
            text: 'Custom',
            handler: function (event, inst) {
                inst.setVal([3, 4, 7], true, true, false, 1000);
            }
        },
        'set',
        'cancel'
    ]
});

mobiscroll.select('#demo-setting-values-auto', {
    data: cities,
    select: 'multiple',
    buttons: ['cancel']
});

document
    .getElementById('demo-setting-values-london')
    .addEventListener('click', function () {
        instance.setVal(5, true, true, false, 1000);
    }, false);

document
    .getElementById('demo-setting-values-paris')
    .addEventListener('click', function () {
        instance.setVal(8, true, true, false, 1000);
    }, false);
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Controlling the default value</div>
        <label>
            Default
            <select id="demo-setting-values"></select>
        </label>
        <label>
            Custom default
            <select id="demo-setting-values-default"></select>
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Setting a custom value</div>
        <div class="mbsc-btn-group-block">
            <button id="demo-setting-values-london">London</button>
            <button id="demo-setting-values-paris">Paris</button>
        </div>
        <label>
            <input id="demo-setting-values-inline"></input>
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Buttons API</div>
        <label>
            Custom
            <select id="demo-setting-values-custom"></select>
        </label>
        <label>
            Auto set
            <select id="demo-setting-values-auto"></select>
        </label>
    </div>
</div>

Select - RTL support

Change demo
RTL support
Javascript Select Right-to-left rendering demo with group options for quick navigation. With full RTL language support and source. Plain JS api for usage everywhere.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

var names = [{
        value: 0,
        group: 'A',
        text: 'Adaline Shiver'
    }, {
        value: 1,
        group: 'A',
        text: 'Adella Cornell'
    }, {
        value: 2,
        group: 'A',
        text: 'Adolph Scriber'
    },
    {
        value: 78,
        group: 'B',
        text: 'Barbara Mackay'
    }, {
        value: 79,
        group: 'B',
        text: 'Barbera Phu'
    }, {
        value: 80,
        group: 'B',
        text: 'Barbie Kaczorowski'
    }, {
        value: 81,
        group: 'B',
        text: 'Barney Flurry'
    },
    // Showing partial data. Download full source.
];

mobiscroll.select('#arabic', {
    lang: 'ar',
    data: names,
    group: true
});

mobiscroll.select('#hebrew', {
    lang: 'he',
    data: names,
    group: true
});

mobiscroll.select('#farsi', {
    lang: 'fa',
    data: names,
    group: true
});

mobiscroll.select('#demo', {
    rtl: true,
    data: names,
    group: true
});

mobiscroll.form('#myform', {
    rtl: true
});
<div id="myform">
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">RTL enabled by default</div>
        <label>
            Arabic
            <select id="arabic"></select>
        </label>
        <label>
            Hebrew
            <select id="hebrew"></select>
        </label>
        <label>
            Farsi
            <select id="farsi"></select>
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Manually set RTL</div>
        <label>
            RTL
            <select id="demo"></select>
        </label>
    </div>
</div>

Select - Localization

Change demo
Localization
Javascript Select component localization example supporting 37 languages, button text with full RTL capability. Plain JS api for usage everywhere.
mobiscroll.settings = {
    theme: '',
    display: 'bubble'
};

var items = [{
    value: 1,
    text: 'Atlanta'
}, {
    value: 2,
    text: 'Berlin'
}, {
    value: 3,
    text: 'Boston'
}, {
    value: 4,
    text: 'Chicago'
}, {
    value: 5,
    text: 'London'
}, {
    value: 6,
    text: 'Los Angeles'
}, {
    value: 7,
    text: 'New York'
}, {
    value: 8,
    text: 'Paris'
}, {
    value: 9,
    text: 'San Francisco'
}];

mobiscroll.select('#demo-english', {
    lang: 'en',
    data: items
});

mobiscroll.select('#demo-arabic', {
    lang: 'ar',
    data: items
});

mobiscroll.select('#demo-bulgarian', {
    lang: 'bg',
    data: items
});

mobiscroll.select('#demo-catala', {
    lang: 'ca',
    data: items
});

mobiscroll.select('#demo-cestina', {
    lang: 'cs',
    data: items
});

mobiscroll.select('#demo-chinese', {
    lang: 'zh',
    data: items
});

mobiscroll.select('#demo-croatian', {
    lang: 'hr',
    data: items
});

mobiscroll.select('#demo-dansk', {
    lang: 'da',
    data: items
});

mobiscroll.select('#demo-deutsch', {
    lang: 'de',
    data: items
});

mobiscroll.select('#demo-english-uk', {
    lang: 'en-UK',
    data: items
});

mobiscroll.select('#demo-espanol', {
    lang: 'es',
    data: items
});

mobiscroll.select('#demo-francais', {
    lang: 'fr',
    data: items
});

mobiscroll.select('#demo-greek', {
    lang: 'el',
    data: items
});

mobiscroll.select('#demo-hindi', {
    lang: 'hi',
    data: items
});

mobiscroll.select('#demo-italiano', {
    lang: 'it',
    data: items
});

mobiscroll.select('#demo-japanese', {
    lang: 'ja',
    data: items
});

mobiscroll.select('#demo-korean', {
    lang: 'ko',
    data: items
});

mobiscroll.select('#demo-lietuviu', {
    lang: 'lt',
    data: items
});

mobiscroll.select('#demo-magyar', {
    lang: 'hu',
    data: items
});

mobiscroll.select('#demo-nederlands', {
    lang: 'nl',
    data: items
});

mobiscroll.select('#demo-norsk', {
    lang: 'no',
    data: items
});

mobiscroll.select('#demo-polski', {
    lang: 'pl',
    data: items
});

mobiscroll.select('#demo-portugues', {
    lang: 'pt-PT',
    data: items
});

mobiscroll.select('#demo-brasileiro', {
    lang: 'pt-BR',
    data: items
});

mobiscroll.select('#demo-romana', {
    lang: 'ro',
    data: items
});

mobiscroll.select('#demo-serbian', {
    lang: 'sr',
    data: items
});

mobiscroll.select('#demo-slovencina', {
    lang: 'sk',
    data: items
});

mobiscroll.select('#demo-suomi', {
    lang: 'fi',
    data: items
});

mobiscroll.select('#demo-svenska', {
    lang: 'sv',
    data: items
});

mobiscroll.select('#demo-thai', {
    lang: 'th',
    data: items
});

mobiscroll.select('#demo-turkce', {
    lang: 'tr',
    data: items
});

mobiscroll.select('#demo-ukrainian', {
    lang: 'ua',
    data: items
});

mobiscroll.select('#demo-vietnamese', {
    lang: 'vi',
    data: items
});

mobiscroll.select('#demo-russian', {
    lang: 'ru',
    data: items
});

mobiscroll.select('#demo-russian-ua', {
    lang: 'ru-UA',
    data: items
});

mobiscroll.select('#demo-hebrew', {
    lang: 'he',
    data: items
});

mobiscroll.select('#demo-farsi', {
    lang: 'fa',
    data: items
});

mobiscroll.form('#demo-localization-form', {
    inputStyle: 'box',
    data: items
});
<div id="demo-localization-form" class="md-localization">
    <div class="mbsc-grid mbsc-form-grid">
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-en"></span>
                    English
                    <select id="demo-english"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-ar"></span>
                    Arabic
                    <select id="demo-arabic"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-bg"></span>
                    Bulgarian
                    <select id="demo-bulgarian"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-ca"></span>
                    Català
                    <select id="demo-catala"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-cs"></span>
                    Cestina
                    <select id="demo-cestina"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-zh"></span>
                    Chinese
                    <select id="demo-chinese"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-hr"></span>
                    Croatian
                    <select id="demo-croatian"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-da"></span>
                    Dansk
                    <select id="demo-dansk"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-de"></span>
                    Deutsch
                    <select id="demo-deutsch"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-en-UK"></span>
                    English (UK)
                    <select id="demo-english-uk"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-es"></span>
                    Español
                    <select id="demo-espanol"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-fr"></span>
                    Français
                    <select id="demo-francais"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-gr"></span>
                    Greek
                    <select id="demo-greek"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-in"></span>
                    Hindi
                    <select id="demo-hindi"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-it"></span>
                    Italiano
                    <select id="demo-italiano"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-ja"></span>
                    Japanese
                    <select id="demo-japanese"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-kr"></span>
                    Korean
                    <select id="demo-korean"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-lt"></span>
                    Lietuvių
                    <select id="demo-lietuviu"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-hu"></span>
                    Magyar
                    <select id="demo-magyar"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-nl"></span>
                    Nederlands
                    <select id="demo-nederlands"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-no"></span>
                    Norsk
                    <select id="demo-norsk"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-pl"></span>
                    Polski
                    <select id="demo-polski"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-pt-PT"></span>
                    Português Europeu
                    <select id="demo-portugues"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-pt-BR"></span>
                    Pt. Brasileiro
                    <select id="demo-brasileiro"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-ro"></span>
                    Româna
                    <select id="demo-romana"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-sr"></span>
                    Serbian
                    <select id="demo-serbian"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-sk"></span>
                    Slovencina
                    <select id="demo-slovencina"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-fi"></span>
                    Suomi
                    <select id="demo-suomi"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-sv"></span>
                    Svenska
                    <select id="demo-svenska"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-th"></span>
                    Thai
                    <select id="demo-thai"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-tr"></span>
                    Türkçe
                    <select id="demo-turkce"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-ua"></span>
                    Ukrainian
                    <select id="demo-ukrainian"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-vi"></span>
                    Vietnamese
                    <select id="demo-vietnamese"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-ru"></span>
                    Русский
                    <select id="demo-russian"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-ru-UA"></span>
                    Русский (UA)
                    <select id="demo-russian-ua"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-he"></span>
                    עברית
                    <select id="demo-hebrew"></select>
                </label>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-4 mbsc-col-xl-3">
                <label>
                    <span class="flag flag-fa"></span>
                    فارسی
                    <select id="demo-farsi"></select>
                </label>
            </div>
        </div>
    </div>
</div>
.md-localization span.flag {
    width: 22px;
    height: 15px;
    position: absolute;
    left: 1em;
    z-index: 1;
    top: 8px;
}

.mbsc-rtl .md-localization span.flag {
    right: 1em;
}

.mbsc-ios .md-localization span.flag {
    top: 15px;
}

.md-localization .flag~.mbsc-label {
    margin-left: 38px;
}

.mbsc-rtl .md-localization .flag~.mbsc-label {
    margin-right: 38px;
}

.md-localization img.flag {
    width: 30px;
}

.md-localization .flag {
    background: url(https://img.mobiscroll.com/demos/flags/flags_responsive.png) no-repeat;
    background-size: 100%;
}

.md-localization .flag-en {
    background-position: 0 93.38843%;
}

.md-localization .flag-ar {
    background-position: 0 76.033058%;
}

.md-localization .flag-bg {
    background-position: 0 9.090909%;
}

.md-localization .flag-ca {
    background-position: 0 14.876033%;
}

.md-localization .flag-cs {
    background-position: 0 21.900826%;
}

.md-localization .flag-zh {
    background-position: 0 19.008264%;
}

.md-localization .flag-hr {
    background-position: 0 38.429752%;
}

.md-localization .flag-da {
    background-position: 0 23.140496%;
}

.md-localization .flag-de {
    background-position: 0 22.31405%;
}

.md-localization .flag-en-UK {
    background-position: 0 92.561983%;
}

.md-localization .flag-es {
    background-position: 0 26.859504%;
}

.md-localization .flag-fr {
    background-position: 0 29.752066%;
}

.md-localization .flag-gr {
    background-position: 0 34.710744%;
}

.md-localization .flag-in {
    background-position: 0 40.909091%;
}

.md-localization .flag-it {
    background-position: 0 42.975207%;
}

.md-localization .flag-ja {
    background-position: 0 44.214876%;
}

.md-localization .flag-kr {
    background-position: 0 47.520661%;
}

.md-localization .flag-lt {
    background-position: 0 52.066116%;
}

.md-localization .flag-hu {
    background-position: 0 39.256198%;
}

.md-localization .flag-nl {
    background-position: 0 65.289256%;
}

.md-localization .flag-no {
    background-position: 0 65.702479%;
}

.md-localization .flag-pl {
    background-position: 0 70.661157%;
}

.md-localization .flag-pt-PT {
    background-position: 0 72.31405%;
}

.md-localization .flag-pt-BR {
    background-position: 0 11.983471%;
}

.md-localization .flag-ro {
    background-position: 0 74.380165%;
}

.md-localization .flag-sr {
    background-position: 0 74.793388%;
}

.md-localization .flag-sk {
    background-position: 0 79.752066%;
}

.md-localization .flag-fi {
    background-position: 0 27.68595%;
}

.md-localization .flag-sv {
    background-position: 0 77.68595%;
}

.md-localization .flag-th {
    background-position: 0 85.950413%;
}

.md-localization .flag-tr {
    background-position: 0 89.256198%;
}

.md-localization .flag-ua {
    background-position: 0 91.735537%;
}

.md-localization .flag-vi {
    background-position: 0 96.694215%;
}

.md-localization .flag-ru {
    background-position: 0 75.206612%;
}

.md-localization .flag-ru-UA {
    background-position: 0 10.743802%;
}

.md-localization .flag-he {
    background-position: 0 40.495868%;
}

.md-localization .flag-fa {
    background-position: 0 42.14876%;
}

Select - Event hooks

Change demo
Event hooks
Javascript Select demo with event hooks for custom integration and functionality. Plain JS api for usage everywhere.
Clear event log
EVENTS FIRED: 
mobiscroll.settings = {
    lang: '',
    theme: ''
};

var instance = mobiscroll.select('#demo-event-hooks', {
    placeholder: 'Please Select...',
    filter: true,
    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
    },
    onSet: function (event, inst) {
        // Your custom event handler goes here
    },
    onItemTap: 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
    },
    onClear: function (event, inst) {
        // Your custom event handler goes here
    },
    onFilter: function (event, inst) {
        // Your custom event handler goes here
    },
    onChange: function (event, inst) {
        // Your custom event handler goes here
    }
});

document
    .getElementById('show')
    .addEventListener('click', function () {
        instance.show();
    }, false);

document
    .getElementById('clear')
    .addEventListener('click', function () {
        instance.clear();
    }, false);
<div mbsc-form>
    <div class="mbsc-form-group">
        <label>
            Select
            <select name="City" id="demo-event-hooks" data-label-style="stacked" data-input-style="box">
                <option value="1">Atlanta</option>
                <option value="2">Berlin</option>
                <option value="3">Boston</option>
                <option value="4">Chicago</option>
                <option value="5">London</option>
                <option value="6">Los Angeles</option>
                <option value="7">New York</option>
                <option value="8">Paris</option>
                <option value="9">San Francisco</option>
            </select>
        </label>
        <div class="mbsc-btn-group">
            <button id="clear">Clear</button>
            <button id="show">Show</button>
        </div>
    </div>
</div>

Select - Theming capabilities

Change demo
Theming capabilities
Javascript Select scroller with iOS, Material, Windows look & feel. Customize colors and styling with theme builder. Plain JS api for usage everywhere.
mobiscroll.settings = {
    lang: '',
    theme: ''
};
var form = mobiscroll.form("#demo-form"),
    items = [{
        value: 1,
        text: 'Atlanta'
    }, {
        value: 2,
        text: 'Berlin'
    }, {
        value: 3,
        text: 'Boston'
    }, {
        value: 4,
        text: 'Chicago'
    }, {
        value: 5,
        text: 'London'
    }, {
        value: 6,
        text: 'Los Angeles'
    }, {
        value: 7,
        text: 'New York'
    }, {
        value: 8,
        text: 'Paris'
    }, {
        value: 9,
        text: 'San Francisco'
    }];

mobiscroll.select("#demo-ios", {
    data: items,
    theme: 'ios',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});

mobiscroll.select("#demo-ios-dark", {
    data: items,
    theme: 'ios-dark',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});

mobiscroll.select("#demo-ios-custom", {
    data: items,
    theme: 'ios-gray',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});

mobiscroll.select("#demo-material", {
    data: items,
    theme: 'material',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});

mobiscroll.select("#demo-material-dark", {
    data: items,
    theme: 'material-dark',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});

mobiscroll.select("#demo-material-custom", {
    data: items,
    theme: 'material-indigo',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});

mobiscroll.select("#demo-windows", {
    data: items,
    theme: 'windows',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});

mobiscroll.select("#demo-windows-dark", {
    data: items,
    theme: 'windows-dark',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});

mobiscroll.select("#demo-windows-custom", {
    data: items,
    theme: 'windows-yellow',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});

mobiscroll.select("#demo-mobiscroll", {
    data: items,
    theme: 'mobiscroll',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});

mobiscroll.select("#demo-mobiscroll-dark", {
    data: items,
    theme: 'mobiscroll-dark',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});

mobiscroll.select("#demo-mobiscroll-custom", {
    data: items,
    theme: 'mobiscroll-lime',
    display: 'bubble',
    touchUi: false,
    placeholder: 'Please Select...'
});
<div mbsc-form>
    <div class="mbsc-grid mbsc-grid-fixed">
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">iOS Theme</div>
                    <label>
                        Light
                        <select id="demo-ios"></select>
                    </label>
                    <label>
                        Dark
                        <select id="demo-ios-dark"></select>
                    </label>
                    <label>
                        Custom
                        <select id="demo-ios-custom"></select>
                    </label>
                </div>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Material Theme</div>
                    <label>
                        Light
                        <select id="demo-material"></select>
                    </label>
                    <label>
                        Dark
                        <select id="demo-material-dark"></select>
                    </label>
                    <label>
                        Custom
                        <select id="demo-material-custom"></select>
                    </label>
                </div>
            </div>
        </div>
        <div class="mbsc-row">
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Windows Theme</div>
                    <label>
                        Light
                        <select id="demo-windows"></select>
                    </label>
                    <label>
                        Dark
                        <select id="demo-windows-dark"></select>
                    </label>
                    <label>
                        Custom
                        <select id="demo-windows-custom"></select>
                    </label>
                </div>
            </div>
            <div class="mbsc-col-sm-12 mbsc-col-md-6">
                <div class="mbsc-form-group-inset">
                    <div class="mbsc-form-group-title">Mobiscroll Theme</div>
                    <label>
                        Light
                        <select id="demo-mobiscroll"></select>
                    </label>
                    <label>
                        Dark
                        <select id="demo-mobiscroll-dark"></select>
                    </label>
                    <label>
                        Custom
                        <select id="demo-mobiscroll-custom"></select>
                    </label>
                </div>
            </div>
        </div>
    </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 Javascript $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/8 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 Javascript $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 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 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/8 or Ionic 2/3/4.

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

Do you need additional support seats?

The 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

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.

Copy TS
Copy HTML
Copy CSS
Copy Module

Step 4.Run ionic serve in the root folder of your app 🎉

Copy command
$ ionic serve

And voilà, everything should be running smoothly.

Customize & try demos locally
How would you like to do it?
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 Angular project

Copy command
$ mobiscroll config angular
$ mobiscroll config angular --lite

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

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

Copy TS
Copy HTML
Copy CSS
Copy Module

Step 4.Run ng serve in the root folder of your app 🎉

Copy command
$ ng serve

And voilà, everything should be running smoothly.

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

Please extract the zip file and run the project like any Angular CLI app. Make sure to have the Angular CLI installed.

For installation and usage, extract the zip file and open a terminal window and follow these steps.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ng serve --open

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 27
Cards 14
Collapsible 3
Color 10
Date & Time 20
Event Calendar 25
Forms 6
Grid layout 7
Image 7
Inputs & fields 6
Listview 18
Measurement 10
Navigation 8
Number 8
Numpad 13
Option List 4
Popup 10
Range 19
Scroller 7
Scrollview 5
Select 18
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