# Forms

Home Search

## Native form elements & buttons

Although the framework automatically enhances form elements and buttons into touch input optimized controls to streamline development, it's easy to tell jQuery Mobile to leave these elements alone so the standard, native control can be used instead.

Adding the `data-role="none"` attribute to any form or button element tells the framework to not apply any enhanced styles or scripting. The examples below all have this attribute in place to demonstrate the effect. You may need to write custom styles to lay out your form controls because we try to leave all the default styling intact.

As of Version 1.1 adding the `data-enhance="false"` attribute to any container will tell the framework, not to enhance any element inside. To activate this functionality, `$.mobile.ignoreContentEnabled` must be set to `true`. View Configuring Defaults before using it.

Text Input:
Textarea:
Search Input:
Flip switch:
Slider:
Choose as many snacks as you'd like: Cheetos Doritos Fritos Sun Chips
Font styling: b i u
Choose a pet: Cat Dog Hamster Lizard
Layout view: List Grid Gallery
Choose shipping method:
Your state:

Button based button:

Input type="button" based button:

Input type="submit" based button:

Input type="reset" based button:

Input type="image" based button:

### More in this section

- Form elements
- Form basics
- Form element gallery
- Mini form element gallery
- Text inputs
- Search inputs
- Slider
- Flip toggle switch
- Radio buttons
- Checkboxes
- Select menus
- Theming forms
- Native form elements
- Submitting forms