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.
data-role="none"
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.
data-enhance="false"
$.mobile.ignoreContentEnabled
true
Button based button:
Input type="button" based button:
Input type="submit" based button:
Input type="reset" based button:
Input type="image" based button: