jQuery Buttons
Buttons for jQuery and jQuery Mobile
Buttons for jQuery and jQuery Mobile
Buttons for jQuery and jQuery Mobile
Learn moreUse the various button styles to create the perfect call to action or any button, segmented control or stepper you need.
With theme builder support and color presets, these controls can be customized for shape, look & feel.
Shipping with useful features:
- Flat, outline and full buttons
- Justfied & full width buttons
- Disabled styling
- Color presets
- Icon buttons
- Single & multiple select segmented control
- Customizable stepper
Button demos available for other frameworks.
Viewing demos & code for
Buttons - Basic styling
Use the buttons on any mobile and desktop form or page. The buttons come with several rendering modes and styles. Use it as:
- fluid width buttons (the buttons grow with their content)
- justified
- full width buttons
Icon support is built in along with three different styles:
- filled buttons
- flat buttons
- outlined buttons
// Use the settings object to change the theme
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
$('#action-btn').on('click', function () {
mobiscroll.toast({
message: 'Button was clicked'
});
});
<div mbsc-form>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Buttons</div>
<div class="mbsc-btn-group">
<button mbsc-button>Button</button>
<button mbsc-button disabled>Disabled</button>
</div>
<div class="mbsc-btn-group">
<button mbsc-button id="action-btn">Click for action</button>
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Full width buttons</div>
<div class="mbsc-btn-group-block">
<button mbsc-button>Full width button</button>
<button mbsc-button disabled>Disabled full width</button>
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Justified buttons</div>
<div class="mbsc-btn-group-justified">
<button mbsc-button>Tag</button>
<button mbsc-button>Favorite</button>
<button mbsc-button>Flag</button>
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Icons</div>
<div class="mbsc-btn-group">
<button mbsc-button data-icon="tag"></button>
<button mbsc-button data-icon="heart"></button>
<button mbsc-button data-icon="flag" disabled></button>
</div>
<div class="mbsc-btn-group">
<button mbsc-button data-icon="tag">Tag</button>
<button mbsc-button data-icon="heart">Favorite</button>
<button mbsc-button data-icon="flag" disabled>Flag</button>
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Flat buttons</div>
<div class="mbsc-btn-group">
<button mbsc-button class="mbsc-btn-flat">Flat</button>
<button mbsc-button class="mbsc-btn-flat" data-icon="arrow-left5">Flat & Icon</button>
<button mbsc-button class="mbsc-btn-flat" data-icon="arrow-left5"></button>
<button mbsc-button class="mbsc-btn-flat" data-icon="key2" disabled></button>
<button mbsc-button class="mbsc-btn-flat" disabled>Flat disabled</button>
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Outline buttons</div>
<div class="mbsc-btn-group">
<button mbsc-button class="mbsc-btn-outline">Outline</button>
<button mbsc-button class="mbsc-btn-outline" data-icon="arrow-left5">Outline & Icon</button>
<button mbsc-button class="mbsc-btn-outline" data-icon="arrow-left5"></button>
<button mbsc-button class="mbsc-btn-outline" data-icon="key2" disabled></button>
<button mbsc-button class="mbsc-btn-outline" disabled>Outline disabled</button>
</div>
</div>
</div>
Buttons - Colors
Use presets with pre-defined colors above the theme colors. Every theme ships with eight customizable presets that can be used across various components including buttons:
- Primary
- Secondary
- Success
- Danger
- Warning
- Info
- Light
- Dark
// Use the settings object to change the theme
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
<div mbsc-form>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Button colors</div>
<div class="mbsc-btn-group">
<button mbsc-button class="mbsc-btn-primary">Primary</button>
<button mbsc-button class="mbsc-btn-secondary">Secondary</button>
<button mbsc-button class="mbsc-btn-success">Success</button>
<button mbsc-button class="mbsc-btn-danger">Danger</button>
<button mbsc-button class="mbsc-btn-warning">Warning</button>
<button mbsc-button class="mbsc-btn-info">Info</button>
<button mbsc-button class="mbsc-btn-light">Light</button>
<button mbsc-button class="mbsc-btn-dark">Dark</button>
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Full width button colors</div>
<div class="mbsc-btn-group-block">
<button mbsc-button class="mbsc-btn-primary">Primary</button>
<button mbsc-button class="mbsc-btn-secondary">Secondary</button>
<button mbsc-button class="mbsc-btn-success">Success</button>
<button mbsc-button class="mbsc-btn-danger">Danger</button>
<button mbsc-button class="mbsc-btn-warning">Warning</button>
<button mbsc-button class="mbsc-btn-info">Info</button>
<button mbsc-button class="mbsc-btn-light">Light</button>
<button mbsc-button class="mbsc-btn-dark">Dark</button>
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Justified button colors</div>
<div class="mbsc-btn-group-justified">
<button mbsc-button class="mbsc-btn-primary">Primary</button>
<button mbsc-button class="mbsc-btn-secondary">Secondary</button>
<button mbsc-button class="mbsc-btn-success">Success</button>
<button mbsc-button class="mbsc-btn-danger">Danger</button>
<button mbsc-button class="mbsc-btn-warning">Warning</button>
<button mbsc-button class="mbsc-btn-info">Info</button>
<button mbsc-button class="mbsc-btn-light">Light</button>
<button mbsc-button class="mbsc-btn-dark">Dark</button>
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Icons button colors</div>
<div class="mbsc-btn-group">
<button mbsc-button data-icon="key2" class="mbsc-btn-primary"></button>
<button mbsc-button data-icon="key2" class="mbsc-btn-secondary"></button>
<button mbsc-button data-icon="key2" class="mbsc-btn-success"></button>
<button mbsc-button data-icon="key2" class="mbsc-btn-danger"></button>
<button mbsc-button data-icon="key2" class="mbsc-btn-warning"></button>
<button mbsc-button data-icon="key2" class="mbsc-btn-info"></button>
<button mbsc-button data-icon="key2" class="mbsc-btn-light"></button>
<button mbsc-button data-icon="key2" class="mbsc-btn-dark"></button>
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Flat button colors</div>
<div class="mbsc-btn-group">
<button mbsc-button class="mbsc-btn-flat mbsc-btn-primary">Primary</button>
<button mbsc-button class="mbsc-btn-flat mbsc-btn-secondary">Secondary</button>
<button mbsc-button class="mbsc-btn-flat mbsc-btn-success">Success</button>
<button mbsc-button class="mbsc-btn-flat mbsc-btn-danger">Danger</button>
<button mbsc-button class="mbsc-btn-flat mbsc-btn-warning">Warning</button>
<button mbsc-button class="mbsc-btn-flat mbsc-btn-info">Info</button>
<button mbsc-button class="mbsc-btn-flat mbsc-btn-light">Light</button>
<button mbsc-button class="mbsc-btn-flat mbsc-btn-dark">Dark</button>
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Outline button colors</div>
<div class="mbsc-btn-group">
<button mbsc-button class="mbsc-btn-outline mbsc-btn-primary">Primary</button>
<button mbsc-button class="mbsc-btn-outline mbsc-btn-secondary">Secondary</button>
<button mbsc-button class="mbsc-btn-outline mbsc-btn-success">Success</button>
<button mbsc-button class="mbsc-btn-outline mbsc-btn-danger">Danger</button>
<button mbsc-button class="mbsc-btn-outline mbsc-btn-warning">Warning</button>
<button mbsc-button class="mbsc-btn-outline mbsc-btn-info">Info</button>
<button mbsc-button class="mbsc-btn-outline mbsc-btn-light">Light</button>
<button mbsc-button class="mbsc-btn-outline mbsc-btn-dark">Dark</button>
</div>
</div>
</div>
Buttons - Segmented
Use the segmented control to render multiple options with single or multiple select. It can be used as tabs, as a compact multi-choice UI instead of a checklist and even as an alterantive to a radio buttons.
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
<div mbsc-form>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Single select</div>
<label>
Day
<input mbsc-segmented type="radio" name="range">
</label>
<label>
Week
<input mbsc-segmented type="radio" name="range">
</label>
<label>
Month
<input mbsc-segmented type="radio" name="range">
</label>
<label>
Year
<input mbsc-segmented type="radio" name="range" checked>
</label>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Multiple select</div>
<label>
S
<input mbsc-segmented type="checkbox" name="week" disabled>
</label>
<label>
M
<input mbsc-segmented type="checkbox" name="week" checked>
</label>
<label>
T
<input mbsc-segmented type="checkbox" name="week" >
</label>
<label>
W
<input mbsc-segmented type="checkbox" name="week" >
</label>
<label>
T
<input mbsc-segmented type="checkbox" name="week" checked>
</label>
<label>
F
<input mbsc-segmented type="checkbox" name="week" >
</label>
<label>
S
<input mbsc-segmented type="checkbox" name="week" disabled>
</label>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Text and Icon</div>
<label>
Featured
<input mbsc-segmented type="radio" data-icon="material-star" name="app" checked>
</label>
<label>
Explore
<input mbsc-segmented type="radio" data-icon="material-explore" name="app">
</label>
<label>
Updates
<input mbsc-segmented type="radio" data-icon="material-system-update" name="app">
</label>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Icon</div>
<label>
<input mbsc-segmented type="radio" data-icon="fa-mail-reply" name="settings">
</label>
<label>
<input mbsc-segmented type="radio" data-icon="fa-retweet" name="settings">
</label>
<label>
<input mbsc-segmented type="radio" data-icon="star3" name="settings" checked>
</label>
<label>
<input mbsc-segmented type="radio" data-icon="cogs" name="settings">
</label>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Disabled</div>
<label>
Idividual
<input mbsc-segmented type="radio" name="org" disabled checked>
</label>
<label>
Team
<input mbsc-segmented type="radio" name="org" disabled>
</label>
<label>
Company
<input mbsc-segmented type="radio" name="org" disabled>
</label>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Segmented colors</div>
<label class="mbsc-segmented-primary">
Desktop
<input mbsc-segmented type="radio" data-icon="home" name="group-primary" checked>
</label>
<label class="mbsc-segmented-primary">
Mobile
<input mbsc-segmented type="radio" data-icon="mobile" name="group-primary">
</label>
<label class="mbsc-segmented-primary">
Cloud
<input mbsc-segmented type="radio" data-icon="cloud-upload" name="group-primary">
</label>
<label class="mbsc-segmented-secondary">
Desktop
<input mbsc-segmented type="radio" data-icon="home" name="group-secondary" checked>
</label>
<label class="mbsc-segmented-secondary">
Mobile
<input mbsc-segmented type="radio" data-icon="mobile" name="group-secondary">
</label>
<label class="mbsc-segmented-secondary">
Cloud
<input mbsc-segmented type="radio" data-icon="cloud-upload" name="group-secondary">
</label>
<label class="mbsc-segmented-success">
Desktop
<input mbsc-segmented type="radio" data-icon="home" name="group-success" checked>
</label>
<label class="mbsc-segmented-success">
Mobile
<input mbsc-segmented type="radio" data-icon="mobile" name="group-success">
</label>
<label class="mbsc-segmented-success">
Cloud
<input mbsc-segmented type="radio" data-icon="cloud-upload" name="group-success">
</label>
<label class="mbsc-segmented-danger">
Desktop
<input mbsc-segmented type="radio" data-icon="home" name="group-danger">
</label>
<label class="mbsc-segmented-danger">
Mobile
<input mbsc-segmented type="radio" data-icon="mobile" name="group-danger" checked>
</label>
<label class="mbsc-segmented-danger">
Cloud
<input mbsc-segmented type="radio" data-icon="cloud-upload" name="group-danger">
</label>
<label class="mbsc-segmented-warning">
Desktop
<input mbsc-segmented type="radio" data-icon="home" name="group-warning">
</label>
<label class="mbsc-segmented-warning">
Mobile
<input mbsc-segmented type="radio" data-icon="mobile" name="group-warning" checked>
</label>
<label class="mbsc-segmented-warning">
Cloud
<input mbsc-segmented type="radio" data-icon="cloud-upload" name="group-warning">
</label>
<label class="mbsc-segmented-info">
Desktop
<input mbsc-segmented type="radio" data-icon="home" name="group-info">
</label>
<label class="mbsc-segmented-info">
Mobile
<input mbsc-segmented type="radio" data-icon="mobile" name="group-info" checked>
</label>
<label class="mbsc-segmented-info">
Cloud
<input mbsc-segmented type="radio" data-icon="cloud-upload" name="group-info">
</label>
</div>
</div>
Buttons - Stepper
Use the stepper to enable controlled increasing and decreasing of values. Configure the steps and choose to provide an input for manual entry with or without a numeric keypad.
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
$(function () {
var cbAllow = $('.md-allow'),
stepperLuggage = $('.md-luggage');
cbAllow.change(function () {
stepperLuggage.prop('disabled', !this.checked);
});
});
<div mbsc-form>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Passengers</div>
<div>
<label for="md-adults">Adults</label>
<span class="mbsc-desc">From 14 years</span>
<input mbsc-stepper id="md-adults" type="number" min="1" value="1" max="15" />
</div>
<div>
<label for="md-children">Children</label>
<span class="mbsc-desc">2-14 years</span>
<input mbsc-stepper id="md-children" type="number" max="15" data-val="left" />
</div>
<div>
<label for="md-infant">Infant</label>
<span class="mbsc-desc">0-2 years</span>
<input mbsc-stepper id="md-infant" type="number" data-val="left" max="10" />
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Luggage</div>
<label>
Allow overweight luggage
<input mbsc-ckeckbox class="md-allow" type="checkbox" />
</label>
<div>
<label for="md-luggage">Weight</label>
<span class="mbsc-desc">(kg)</span>
<input mbsc-stepper id="md-luggage" type="number" class="md-luggage" data-val="left" min="30" max="80" step="5" value="30" disabled />
</div>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Stepper colors</div>
<label class=" mbsc-stepper-primary">
Primary
<input mbsc-stepper type="number" value="100" min="-500" max="500" step="100">
</label>
<label class=" mbsc-stepper-secondary">
Secondary
<input mbsc-stepper type="number" value="100" min="-500" max="500" step="100">
</label>
<label class=" mbsc-stepper-success">
Success
<input mbsc-stepper type="number" value="100" min="-500" max="500" step="100">
</label>
<label class=" mbsc-stepper-danger">
Danger
<input mbsc-stepper type="number" value="100" min="-500" max="500" step="100">
</label>
<label class=" mbsc-stepper-warning">
Warning
<input mbsc-stepper type="number" value="100" min="-500" max="500" step="100">
</label>
<label class=" mbsc-stepper-info">
Info
<input mbsc-stepper type="number" value="100" min="-500" max="500" step="100">
</label>
</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.
All
Framework license
Get all 36 components, including
Framework license
Get all 36 components, including
- 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
Framework license
Select the development framework you are using. Get all 36 components with the license.
- 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
Select the framework you are interested in
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. ( +$100/seat )
Add the source code?
What framework are you using?
We have to set you up with a trial for this to run 👍
Step 1.Install the Mobiscroll CLI from npm
$ 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
$ 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:
Run this command for Ionic 4 & Mobiscroll starter:
Step 3.Copy the code into your app.
Step 4.Run ionic serve in the root folder of your app 🎉
$ ionic serve
And voilà, everything should be running smoothly.
Step 1.Install the Mobiscroll CLI from npm
$ 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
$ 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.
Step 4.Run ng serve in the root folder of your app 🎉
$ ng serve
And voilà, everything should be running smoothly.
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.
$ npm install
$ ionic serve
Let us know if we can help and enjoy!
Your password has been changed!
Everything is set up so that you can dig in right away and start exploring.
Please extract the zip file and simply open the demos in your favorite browser.
For instructions on how to install Mobiscroll in your project
follow this guide.
Let us know if we can help and enjoy!
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.
$ npm install
$ ng serve --open
Let us know if we can help and enjoy! 👍
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.
The demos are using Babel's in-browser ES6 and JSX transformer.
Please extract the zip file and open the demos in your browser.
For instructions on how to install Mobiscroll in your project
follow this guide.
Let us know if we can help and enjoy!