Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building a styled select list that still uses iOS functionality

It's pretty easy to style a text input and have it work right in iOS. By right I mean the onscreen keyboard will still open up as expected and the Previous|Next buttons still let you tab between inputs.

Most prettified select lists out there seem to replace an actual ... with other elements to get a nice look. This works in iOS but if you are Previous|Nexting through a bunch of inputs it won't act as expected.

Is it possible to style a select list so that it will work like a plain but look like something you'd get from Dropkick JS or another library (or build yourself)? I considered trying to hide a real select behind an element but I don't think I can make the list open up correctly with javascript.

like image 321
Jared Avatar asked Nov 15 '11 16:11

Jared


1 Answers

You can alter practically any of the form controls in iOS. Here's a great demo: http://37signals.com/svn/posts/2609-customizing-web-forms-with-css3-and-webkit
I'm a big fan of the formalize library, which is going to apply styles you may not like, but you can always change them; it's a great library to learn from: http://formalize.me

like image 54
albert Avatar answered Nov 03 '22 04:11

albert