I’m working on a web app that has its own look and feel. I want to use jQuery Mobile for the touch events support only.
When I link jquery.mobile.min.js (without linking the css), then the layout of my page is broken.
How can I configure (initialize) jQuery Mobile to only use touch events support? Would I bind the events in the jQuery document ready hook since I’d not have any JQM page related event?
Edit
See this example in jsfiddle: http://jsfiddle.net/redhotsly/JGgrw/. The html contains a <button> but jQuery Mobile created a <span> to its left. If you inspect the resulting markup (F12) you will see that jQuery Mobile also added a CSS class to my button.
Edit:
I need a solution where I’ll not have modify the JQM script. I need to use the official script off a CDN.
If you just want to bind to touch/gesture events I’d use jGestures instead:
http://jgestures.codeplex.com/
Nice little jquery plugin that I’ve used on projects before with a big range of events to bind to: