O'Reilly logo

HTML5 and CSS3 Responsive Web Design Cookbook by Benjamin LaGrone

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a mobile, native-looking button with jQuery Mobile

Let's make buttons! Making a button may seem like a very trivial part of the design, but contrarily, when you are building a web application, a button can be a very important part of the site's usability.

jQuery Mobile has an impressive array of button invocations, and they are all easy to use. They are usable within many other jQuery Mobile widgets as well. In addition, it is just as easy to make a button from a link as it is to make one from a form input element.

Getting ready

In your IDE or text editor, spin up a new HTML document and add the requisite header tags. First add the viewport <meta> tag, followed by links to the jQuery Mobile CSS and the JavaScript libraries jQuery and jQuery ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required