Hassle-free 5 minute guide to awesome Select
This is the second entry in our “Hassle-free” 5 minute guide series for making data-picking awesome in you app.
What?!?! Under 5 minutes? Keep on reading …
What you need
Under 5 minutes of time
A text editor and a browser
Wanting to make data selection awesome in your app



What you’ll be doing?
You will be making selecting values easy in your mobile/tablet webapp or hybrid app (PhoneGap). You will render a scrollable control from HTML selects using the Mobiscroll Select Scroller.
So let’s get started.
Download Mobiscroll Select Scroller
Add mobiscroll to your app
Oh wow. Just a few clicks and your almost done.
1 2 | <link href="css/mobiscroll.custom-2.5.0.min.css" rel="stylesheet" type="text/css" /> <script src="js/mobiscroll.custom-2.5.0.min.js" type="text/javascript"></script> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <!-- The HTML: select with options --> <select name="States" id="sel"> <option value="0">AL Alabama</option> <option value="1">AK Alaska</option> <option value="2">AR Arkansas</option> <option value="3">AZ Arizona</option> <option value="4">CA California</option> <option value="5">CO Colorado</option> <option value="6">CT Connecticut</option> <option value="7">DE Delaware</option> <option value="8">FL Florida</option> <option value="9">GA Georgia</option> <option value="10">HI Hawaii</option> <option value="11">ID Idaho</option> <option value="12">IL Illinois</option> <option value="13">IN Indiana</option> <option value="14">IA Iowa</option> </select> |
1 2 3 4 | //The Javascript: initializing the scroller $(function(){ $("#sel").mobiscroll().select(); }); |
Enjoy the magic
NO way! Already?
Optional but RECOMMENDED
If this is not sharable, what is?
If this was awesome and made you smile, spread the word!
Resources
You’ll find all resources you need to build the example and a step by step guide in text, without images.
Step by Step Guide
- Go to http://download.mobiscroll.com/select and choose the library you’re using (We support jQuery, jQuery Mobile, Zepto JS and jQMobi)
- Choose the theme you like (There is a default theme added initially)
- Hit that download button
- Load the page you’d like to enhance with the Mobiscroll Select Scroller in your favorite IDE or Text Editor
- Include the necessary CSS and JS files that came in your download package
- Add the select to your markup and link mobiscroll to it
- Open up your favorite browser or rather pick up your phone, we’re supporting all the major platforms (Android, iOS, Windows Phone 8 and BlackBerry) and navigate to the URL where you have your app
- Enjoy the glory!
- Share what you just learned