From the course: jQuery Mobile Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Working with buttons - jQuery Mobile Tutorial
From the course: jQuery Mobile Essential Training
Working with buttons
Okay, let's begin our exploration of jQuery Mobile form controls by looking at buttons. Buttons, of coursem are used all over applications, and in jQuery Mobile, there are a few different ways to declare a button. The first is to use the button tag. And you can see here, I've got a button tag with the word button in it, and that will create a button in a jQuery Mobile form. You can also use the input of type equals button, and you can style a link as a button by applying the ui-btn class to the link. Now remember, jQuery Mobile will take care of enhancing the button to look like a nice styled mobile app for you. You don't have to do anything in order to get this to happen. So, let's exercise the button code by jumping over to the sample and, seeing how things work. Okay, so here in the example code, in the snippets, I have scrolled down to Chapter 3 and the buttons section, and let's open up Buttons_start.html. And I'm going to copy these first few links, which demonstrate using the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.