Book Image

jQuery Mobile First Look

Book Image

jQuery Mobile First Look

Overview of this book

Table of Contents (17 chapters)
jQuery Mobile First Look
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 6. Mobile Clicking: Buttons

What would the Internet be without buttons? No, seriously, every time we see a form, or there is the possibility to perform some sort of action, we instinctively look for a button to click in order to submit the information we wish to process.

The jQuery Mobile framework provides a series of options and markup facilities for us to choose from whenever we have to decide how to style the buttons we need in our mobile interface.

In fact, we might have trouble handling and creating buttons due to their nature: they are elements we can click, but we also expect them to (usually) do something other than navigate through the website.

However, jQuery Mobile makes heavy use of buttons as a means of navigation, often preferring buttons to regular links.

A simple example is the back button which is automatically added to most of the pages we create using the jQuery mobile framework; actually, though, this is a link which is styled as a button that links back to the previous...