light
dark

Numpad - Decimal

Change demo
Numeric keypad decimal value entry with double scale featuring min/max value validation. With source code.
$(function () {

    $('#demo').mobiscroll().numpad({
        theme: '',
        lang: '',
        min: 1,
        scale: 2,
        preset: 'decimal'
    });
});
<input id="demo" placeholder="Please Select ..." />

Numpad - Currency

Change demo
Numeric keypad monetary value entry with double scale featuring min/max and validation. With source code.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

$(function () {

    var stepperPrice = $('.md-price'),
        numpadCons = $('.md-numpad');

    numpadCons.mobiscroll().numpad({
        preset: 'decimal',
        anchor: '.md-price',
        min: 5,
        max: 500,
        prefix: '$',
        onSet: function (event, inst) {
            stepperPrice.mobiscroll('setVal', event.valueText);
        }
    }).mobiscroll('setVal', stepperPrice.val());

    numpadCons.mobiscroll('tap', stepperPrice, function () {
        numpadCons.mobiscroll('show');
    });

    stepperPrice.change(function (ev) {
        ev.target.value = '$' + ev.target.value
        numpadCons.mobiscroll('setVal', ev.target.value);
    });

    stepperPrice.val('$' + stepperPrice.val());

});
<div class="md-currency">
    <div class="md-stepper-np" mbsc-form>
        <div class="mbsc-padding md-demo">
            <h4 class="md-title">Automatically top up account</h4>
            <div class="mbsc-desc ">Top up from credit card if account falls bellow $10</div>

            <div class="mbsc-form-group-inset">
                <div>
                    <input id="md-price" class="md-price" data-role="stepper" min="10" max="500" step="10" value="20" readonly />
                </div>
            </div>
            <div id="demo" class="md-numpad"></div>

            <button class="mbsc-btn-block">Save Settings</button>
        </div>
    </div>
</div>
.demo-currency {
    padding: 0 !important;
}

.md-stepper-np .md-demo {
    text-align: center;
}

.md-stepper-np .md-demo .mbsc-desc {
    font-size: 16px;
    padding-bottom: 16px;
}

.md-stepper-np .md-demo .mbsc-btn {
    margin-top: 36px;
}

.md-stepper-np .md-title {
    margin-top: 40px;
}

.md-stepper-np {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.md-stepper-np .mbsc-segmented {
    left: 50%;
    margin-left: -122px;
}

.md-stepper-np .mbsc-stepper .mbsc-segmented-item {
    width: 4.375em;
}

.md-stepper-np .mbsc-stepper .mbsc-segmented-item:nth-child(3) {
    width: 6.25em;
}

.md-stepper-np .mbsc-stepper input {
    left: 5em;
    width: 7.1428em;
}

Numpad - Integer

Change demo
Numeric keypad for integer value entry supporting negative and positive numbers and validation. With source code.
$(function () {

    $('#demo').mobiscroll().numpad({
        theme: '',
        lang: '',
        preset: 'decimal',
        scale: 0,
        max: 9999,
        // min: -9999
    });
});
<input id="demo" placeholder="Please Select ..." />

Numpad - Timespan

Change demo
Numeric keypad demo for capturing hour minute and seconds. Great for setting timers and alarms. With source code.
$(function () {

    $('#demo').mobiscroll().numpad({
        theme: '',
        lang: '',
        preset: 'timespan'
    });

});
<input id="demo" placeholder="Please Select ..." />

Numpad - RTL Support

Change demo
Numeric keypad RTL demo for right to left rendering & languages like Arabic, Hebrew, Farsi. With source code.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

$(function () {

    $('#arabic').mobiscroll().numpad({
        lang: 'ar'
    });

    $('#hebrew').mobiscroll().numpad({
        lang: 'he'
    });

    $('#farsi').mobiscroll().numpad({
        lang: 'fa'
    });

    $('#demo').mobiscroll().numpad({
        rtl: true
    });

    $('#myform').mobiscroll().form({
        rtl: true
    });
    
});
<div id="myform">
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Use RTL with locale settings where applicable or manually enable it.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">RTL enabled by default</div>
        <label>
            Arabic
            <input id="arabic" placeholder="Please Select..." />
        </label>
        <label>
            Hebrew
            <input id="hebrew" placeholder="Please Select..." />
        </label>
        <label>
            Farsi
            <input id="farsi" placeholder="Please Select..." />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Manually set RTL</div>
        <label>
            RTL
            <input id="demo" placeholder="Please Select..." />
        </label>
    </div>
</div>

Numpad - Time

Change demo
Numeric keypad demo for capturing time inputs. 12h and 24 hour format is supported. With source code.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

$(function () {

    $('#demo').mobiscroll().numpad({
        preset: 'time',
        timeFormat: 'HH:ii'
    });

    $('#demo12h').mobiscroll().numpad({
        preset: 'time',
        timeFormat: 'hh:ii A'
    });

});
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Time formats</div>
        <label>
        24h format 
        <input id="demo" placeholder="Please Select..." />
    </label>
        <label>
        12h format
        <input id="demo12h" type="text" placeholder="Please Select..." />
    </label>
    </div>
</div>

Numpad - Date

Change demo
Numeric keypad date entry demo with header text. Custom date format and validation is supported. With source code.
$(function () {

    $('#demo').mobiscroll().numpad({
        theme: '',
        lang: '',
        preset: 'date',
        headerText: 'Next Schedule (mm/dd/yyyy)'
    });

});
<input id="demo" placeholder="Please Select ..." />

Numpad - Masked Entry - PIN

Change demo
Numeric keypad PIN demo with masked input and value entry. Custom length PIN is supported. With source code.
$(function () {

    $('#demo').mobiscroll().numpad({
        theme: '',
        lang: '',
        template: 'dddd',
        allowLeadingZero: true,
        placeholder: '-',
        mask: '*',
        validate: function (event, inst) {
            return {
                invalid: event.values.length != 4
            };
        }
    });

});
<input id="demo" placeholder="Please Select ..." />

Numpad - Variable Fraction

Change demo
Numeric keypad demo for decimal value entry with variable scale, fraction length. With source code.
$(function () {

    var decimal = '.',
        thousands = ',';

    $('#demo').mobiscroll().numpad({
        theme: '',
        lang: '',
        template: 'ddddddddd',
        maxLength: 9,
        maxScale: 9,
        allowLeadingZero: true,
        parseValue: function (value) {
            if (value) {
                return value.toString().replace(thousands, '').split('');
            }
            return [];
        },
        formatValue: function (numbers) {
            var ret = '',
                l = numbers.length,
                decimals,
                i;

            // Add leading zeroes if necessary
            if (numbers[0] == '.') {
                numbers.unshift(0);
                l++;
            }

            ret = numbers.join('').split(decimal);

            ret[0] = ret[0].replace(/\B(?=(\d{3})+(?!\d))/g, thousands);

            return ret.join(decimal);
        },
        leftKey: {
            text: '.',
            value: '.'
        },
        validate: function (event, inst) {
            var s = inst.settings,
                values = event.values,
                disabledButtons = [],
                invalid = false;

            if (values.length >= s.maxLength || values.indexOf(decimal) !== -1) {
                disabledButtons.push(decimal);
            }

            if (values.length == 1 && values[0] === 0) {
                for (var i = 1; i <= 9; i++) {
                    disabledButtons.push(i);
                }
            }

            if (!values.length || values[values.length - 1] == decimal) {
                invalid = true;
            }

            // Only allow max maxScale decimal values
            if (values.length > (s.maxScale + 1) && values[values.length - s.maxScale - 1] == decimal) {
                for (var i = 0; i <= 9; i++) {
                    disabledButtons.push(i);
                }
            }

            // Display the formatted value
            if (inst.isVisible()) {
                $('.mbsc-np-dsp', inst._markup).html(inst.settings.formatValue(values) || '&nbsp;');
            }

            return {
                invalid: invalid,
                disabled: disabledButtons
            };

        }
    });

});
<input id="demo" placeholder="Please Select ..." />

Numpad - Donation

Change demo
$(function () {

    $('#demo').mobiscroll().numpad({
        theme: '',
        lang: '',
        min: 1,
        max: 10000,
        scale: 2,
        preset: 'decimal'
    });

});
<div class="md-donation-cont">
    <div class="md-donation">
        <div class="md-header">Giving feels good</div>

        <img src="https://img.mobiscroll.com/demos/heart.png" class="md-heart" />

        <div class="md-donate-padding">
            <div class="md-btn-cont">
                <button class="md-btn mbsc-btn">$500</button>
                <button class="md-btn mbsc-btn">$250</button>
                <button class="md-btn mbsc-btn">$100</button>
            </div>
            <label class="md-input-cont">
                <input id="demo" class="md-donation-input" placeholder="Other amount..." />
            </label>
        </div>

        <button class="md-donation-btn mbsc-btn">Donate now</button>

    </div>
</div>
.demo-donation {
    height: 100%;
    padding: 0!important;
}

.md-donation-cont {
    height: 100%;
}

.md-donation {
    background: #fff;
    min-height: 100%;
    position: relative;
}

.md-donation .md-header {
    color: #fb354c;
    font-size: 35px;
    text-align: center;
    padding: 60px 0 20px 0;
}

.md-donation .md-heart {
    width: 100%;
    padding-bottom: 50px;
}

.md-donation .md-donate-padding {
    padding: 2em 2em 6.5em 2em;
}


/* button */

.md-donation .md-btn-cont {
    overflow: hidden;
}

.md-donation-cont .md-donation .md-donate-padding .md-btn {
    float: left;
    width: 31%;
    text-decoration: none;
    padding: 0.8em 2em;
    margin: 0;
    outline: 0;
    border: 0;
    overflow: visible;
    cursor: pointer;
    color: #fff;
    background: #fb354c;
    border-radius: 4px;
    font-size: 16px;
}

.md-donation-cont .md-donation .md-donate-padding .md-btn:nth-child(2) {
    margin: 0 3.3%;
}

.md-donation-cont .md-donation .md-donation-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 68px;
    margin: 0;
    background: #fb354c;
    color: #fff;
    font-size: 20px;
    text-transform: capitalize;
    border-radius: 0;
    box-shadow: none;
}

.md-donation-cont .md-donation .md-donate-padding .md-btn:focus,
.md-donation-cont .md-donation .md-donation-btn:active {
    opacity: .6;
}

.md-donation-cont .md-donation .md-donate-padding .md-btn:hover {
    background: #B50F06;
}


/* input */

.md-donation-input {
    margin: 0;
}

.md-donation .md-donate-padding .md-input-cont {
    position: relative;
    display: block;
    border: 1px solid #fb354c;
    border-radius: 4px;
    margin: 15px 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-weight: 100;
    line-height: 1;
}

.md-donation .md-donate-padding .md-input-cont:before {
    content: '$';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 35px;
    background: #fb354c;
    color: #fff;
    font-size: 16px;
    text-align: center;
    line-height: 39px;
}

.md-donation .md-donate-padding input {
    outline: 0;
    background: #fff;
    height: 100%;
    width: 99%;
    border: 0;
    padding: 10px 10px 10px 45px;
    font-size: 16px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    line-height: 20px;
}

Numpad - Event handlers

Change demo
Numeric keypad demo with event hooks for custom integration and functionality. With source code.
$(function () {

    $('#demo').mobiscroll().numpad({
        theme: '',
        lang: '',
        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
        },
        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
        },
        validate: function (data, inst) {
            // Your custom event handler goes here
        }
    });
});
<input id="demo" placeholder="Please Select..." />
Clear event log
EVENTS FIRED: 

Numpad - Display modes

Change demo
Numeric keypad demo with top, bottom, popup, center, modal, bubble and inline embedded display modes.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#demo-bottom').mobiscroll().numpad({
        display: 'bottom'
    });

    $('#demo-top').mobiscroll().numpad({
        display: 'top'
    });

    $('#demo-center').mobiscroll().numpad({
        display: 'center'
    });

    $('#demo-bubble').mobiscroll().numpad({
        display: 'bubble'
    });

    $('#demo-inline').mobiscroll().numpad({
        display: 'inline'
    });

});
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Try different display modes</div>
        <label>
            Bottom
            <input id="demo-bottom" placeholder="Please Select..." />
        </label>
        <label>
            Top
            <input id="demo-top" type="text" placeholder="Please Select..." />
        </label>
        <label>
            Center
            <input id="demo-center" type="text" placeholder="Please Select..." />
        </label>
        <label>
            Bubble
            <input id="demo-bubble" type="text" placeholder="Please Select..." />
        </label>
    </div>
    <div class="mbsc-form-group mbsc-padding">
        <p class="mbsc-thin">With inline display you can embed the Numpad component in almost any markup or form.</p>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Embedded numpad scroller</div>
        <div id="demo-inline"></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 35 components, including with the Framework license.



Mobiscroll for JQuery $395


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 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 35 components, including with the Framework license.



Mobiscroll for JQuery $395


  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6 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 35 components with the license.

Mobiscroll for Javascript
Mobiscroll for jQuery
Mobiscroll for React
Mobiscroll for Angular
Mobiscroll for Angular JS
  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6 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 or Ionic 2/3/4.

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

Do you need additional support seats?

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

Add the source code?

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

What framework are you using?

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

Customize & try demos locally
Sign in or start your free 30 day trial

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

Select a framework
Email address

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

What framework are you using?

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

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The Mobiscroll 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

If your app is using lazy loading, add --lazy.

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

Create a starter app with the CLI

$ mobiscroll start ionic myStarter

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

Copy TS
Copy HTML
Copy CSS

Run ionic serve in the root folder of your app 🎉

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

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

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

Let us know if we can help and enjoy!

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

You are setting a password for the account

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

Your password has been changed!

Thanks for downloading
Customize demos locally

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

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

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


Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

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

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

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

Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

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

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

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

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

Thanks for downloading
Customize demos locally

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

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

The demos are using Babel's in-browser ES6 and JSX transformer. Extract the zip file and open the demo in your browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Demos
Components
Calendar 20
Cards 10
Color 9
Date & Time 14
Event Calendar 16
Forms 21
Image 6
Listview 17
Measurement 10
Navigation 7
Number 7
Numpad 12
Option List 4
Range 17
Scroller 6
Scrollview 5
Select 13
Styling 4
Timer 5
Timespan 6
Treelist 6
Widget 10
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