Only for jQuery mobile styles

I like JQuery Mobile, but I have a lot of custom Javascript on my page that are not compatible with JQuery Mobile.

Everything on my page works fine, but when I add the JQuery Mobile library, they fail, and I tried to fix the situation, but there was a lot of failure.

Now the only thing I really need from jQuery is basically styles. These are mainly styles for: - Text fields - Buttons - on / off switch (I think the switch is on the right? It will be great if I can grab the switch left and right, but if this does not work without a JS file, I do not mind using only his style without animation, while I can turn it on and off by pressing). - Dropdown lists.

I really like everything I need from jQuery Mobile on my pages, I don’t need anything like the Ajax stuff, pages and many other things that jQuery Mobile provides.

I tried attaching CSS to jQuery Mobile without a JS file and tried to find the necessary classes for the controls above, but they do not display correctly!

Could you tell me if there is a way to apply only the styles of the jQuery Mobile library? I do not need functions.

Thank you very much.

+4
source share
2 answers

It can be done. A few months ago, jQuery Mobile developers created a bootloader. This is a tool that can customize the jQuery Mobile platform, giving you the ability to select only the features you need.

The link can be found here: Download Builder .

All you have to do is select the jQuery Mobile version on top and select the desired widgets on the page below. The page will automatically select any other necessary files.

+3
source

Just by including jQuery Mobile and jQuery js and css file you used before? I understand that if you used an earlier version, you need to enable the compressed, production jQuery Migrate 1.1.1. Here are the links: http://jquerymobile.com/download/ http://jquery.com/download/

Everything is there, but you can not use anything there.

0
source

All Articles