Response title
This is preview!
I hadn't noticed that you had multiple pages in a single file.If you check other examples on how to load multiple pages in a single html file, they all use ID's
Unfortunately, the examples are full of bad practices. This is the worst, though. IMO, the examples should not use IDs, and it is the first thing that should be mentioned in the documentation, because the idea of ditching IDs is so foreign to most web developers and most are very resistant about the idea of switching from IDs to classes. But using IDs is the surest way of making your jQuery Mobile project fail.If you check other examples on how to load multiple pages in a single html file, they all use ID's
Also, i can easily pass variables between pages that are inside the same HTML as i dont think its possible to do so from seperate HTML files?
No, you can't use a class to link to a page. If you used separate files, you just use a URL. If you really insist on using a multi-page, there's nothing wrong with using an ID for the pages - you have to. But I don't recommend it (multi-page). Multi-page *is* going to bite you. Along with IDs.Can u use class? if so how? just by saying class=itemtypeList and on my a href i do a href = #itemtypeList and it will work?
You would have to ask the developers that question. If you get an answer, I'd love to hear it.Anyways if the examples are bad then why is it specified in the official jquery mobile website?
© 2013 jQuery Foundation
Sponsored by and others.