jQuery Toggle & Radio
Toggle & Radio for jQuery and jQuery Mobile
Toggle & Radio for jQuery and jQuery Mobile
Toggle & Radio for jQuery and jQuery Mobile
Learn moreUse the switch and checkbox components to let people turn options on/off. Besides the toggle functionality create radio-button lists for mutually exclusive value selection.
Enjoy platform specific look & feel on the web, desktop and mobile.
Refined UX for toggle and radio elements with the following features:
- Checkbox & checklist styling
- Switch and toggle styling
- Radio-button styling
- Color presets with diabled styling
- Icon support
- Value and description support
Forms demos available for other frameworks.
Viewing demos & code for
Toggle & Radio - Checkbox
// Use the settings object to change the theme
mobiscroll.settings = {
theme: '',
themeVariant: '',
lang: ''
};
$(function () {
function checkboxChange() {
var selOptions = [];
$('.md-checkboxes input:checkbox').each(function () {
if ($(this).is(':checked')) {
selOptions.push(' ' + $(this).attr('name'));
}
});
$('.selected-options').text(selOptions + ' selected');
}
checkboxChange();
$('.md-checkboxes input:checkbox').change(checkboxChange);
});
<div mbsc-form>
<div class="mbsc-form-group md-checkboxes">
<div class="mbsc-form-group-title">Checkbox</div>
<label>
<input mbsc-checkbox type="checkbox" name="Option 1" checked>
Option 1
<span class="mbsc-desc">Checked checkbox</span>
</label>
<label>
<input mbsc-checkbox type="checkbox" name="Option 2">
Option 2
<span class="mbsc-desc">Empty checkbox</span>
</label>
<label>
<input mbsc-checkbox type="checkbox" name="Option 3" disabled>
Option 3
<span class="mbsc-desc">Disabled checkbox</span>
</label>
<label>
<input mbsc-checkbox type="checkbox" name="Option 4" checked disabled>
Option 4
<span class="mbsc-desc">Disabled and checked checkbox</span>
</label>
</div>
<div class="mbsc-padding selected-options"></div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Checkbox colors</div>
<label class="mbsc-checkbox-primary">
Primary
<input mbsc-checkbox type="checkbox" checked>
</label>
<label class="mbsc-checkbox-secondary">
Secondary
<input mbsc-checkbox type="checkbox" checked>
</label>
<label class="mbsc-checkbox-success">
Success
<input mbsc-checkbox type="checkbox" checked>
</label>
<label class="mbsc-checkbox-danger">
Danger
<input mbsc-checkbox type="checkbox" checked>
</label>
<label class="mbsc-checkbox-warning">
Warning
<input mbsc-checkbox type="checkbox" checked>
</label>
<label class="mbsc-checkbox-info">
Info
<input mbsc-checkbox type="checkbox" checked>
</label>
</div>
</div>
Toggle & Radio - Switch
// Use the settings object to change the theme
mobiscroll.settings = {
theme: '',
themeVariant: '',
lang: ''
};
<div mbsc-form>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Switch</div>
<label>
<input mbsc-switch type="checkbox"> Switch Off
<span class="mbsc-desc">This is description for Switch</span>
</label>
<label>
<input mbsc-switch type="checkbox" checked> Switch On
<span class="mbsc-desc">This is description for Switch 2</span>
</label>
<label>
<input mbsc-switch type="checkbox" disabled> Disabled Switch Off
</label>
<label>
<input mbsc-switch type="checkbox" disabled checked> Disabled Switch On
</label>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Switch colors</div>
<label class="mbsc-switch-primary">
Primary
<input mbsc-switch type="checkbox" checked>
</label>
<label class="mbsc-switch-secondary">
Secondary
<input mbsc-switch type="checkbox" checked>
</label>
<label class="mbsc-switch-success">
Success
<input mbsc-switch type="checkbox" checked>
</label>
<label class="mbsc-switch-danger">
Danger
<input mbsc-switch type="checkbox" checked>
</label>
<label class="mbsc-switch-warning">
Warning
<input mbsc-switch type="checkbox" checked>
</label>
<label class="mbsc-switch-info">
Info
<input mbsc-switch type="checkbox" checked>
</label>
</div>
</div>
Toggle & Radio - Radio buttons
// 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">Radio buttons</div>
<label>
<input mbsc-radio type="radio" name="group" checked> Radio Option 1
<span class="mbsc-desc">This is description for radio 1</span>
</label>
<label>
<input mbsc-radio type="radio" name="group"> Radio Option 2
<span class="mbsc-desc">This is description for radio 2</span>
</label>
<label>
<input mbsc-radio type="radio" name="group"> Radio Option 3
</label>
<label>
<input mbsc-radio type="radio" name="group" disabled> Disabled
</label>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Radio button colors</div>
<label class="mbsc-radio-primary">
Primary
<input mbsc-radio type="radio" name="color">
</label>
<label class="mbsc-radio-secondary">
Secondary
<input mbsc-radio type="radio" name="color">
</label>
<label class="mbsc-radio-success">
Success
<input mbsc-radio type="radio" name="color" checked>
</label>
<label class="mbsc-radio-danger">
Danger
<input mbsc-radio type="radio" name="color">
</label>
<label class="mbsc-radio-warning">
Warning
<input mbsc-radio type="radio" name="color">
</label>
<label class="mbsc-radio-info">
Info
<input mbsc-radio type="radio" name="color">
</label>
</div>
</div>
Toggle & Radio - Checklist
mobiscroll.settings = {
lang: '',
theme: '',
themeVariant: ''
};
<div mbsc-form>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Category</div>
<label>
<input mbsc-checkbox type="checkbox" checked>
<span class="mbsc-label"> <span class="micons icon-starter md-food-ic"> </span>starter </span>
</label>
<label>
<input mbsc-checkbox type="checkbox" checked>
<span class="mbsc-label"> <span class="micons icon-main md-food-ic"> </span>main</span>
</label>
<label>
<input mbsc-checkbox type="checkbox">
<span class="mbsc-label"> <span class="micons icon-dessert md-food-ic"> </span>dessert</span>
</label>
<label>
<input mbsc-checkbox type="checkbox">
<span class="mbsc-label"> <span class="micons icon-snack md-food-ic"> </span>snack</span>
</label>
</div>
<div class="mbsc-form-group">
<div class="mbsc-form-group-title">Main Ingredient</div>
<label>
<input mbsc-checkbox type="checkbox" checked>
<span class="mbsc-label"> <span class="micons icon-poultry md-food-ic"> </span>poultry</span>
</label>
<label>
<input mbsc-checkbox type="checkbox" checked>
<span class="mbsc-label"> <span class="micons icon-beef md-food-ic"> </span>beef</span>
</label>
<label>
<input mbsc-checkbox type="checkbox" checked>
<span class="mbsc-label"> <span class="micons icon-pork md-food-ic"> </span>pork</span>
</label>
<label>
<input mbsc-checkbox type="checkbox" checked>
<span class="mbsc-label"> <span class="micons icon-seafood md-food-ic"> </span>seafood</span>
</label>
<label>
<input mbsc-checkbox type="checkbox">
<span class="mbsc-label"> <span class="micons icon-vegetarian md-food-ic"> </span>vegetarian</span>
</label>
<label>
<input mbsc-checkbox type="checkbox">
<span class="mbsc-label"> <span class="micons icon-vegan md-food-ic"> </span>vegan</span>
</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!