Jitendra Vyas
Jitendra Vyas

Reputation: 152737

Is jQuery Mobile a lightweight version of original jQuery or jQuery UI?

Is jQuery Mobile a lightweight version of original jQuery or jQuery UI?

Is it a mobile version of jQuery? Whatever we can do with jQuery all possible with jQuery mobile?

Will all jQuery selectors work with jQuery mobile?

And if I want to use according like this http://www.mix26.com/demo/accordion/index.htm on latest mobiles. Is it possible to make same effect with "jQuery Mobile" library? or I will have to use desktop version of jQuery?

On mobile web development, When we should use jQuery and when jQuery Mobile?

Upvotes: 1

Views: 1144

Answers (3)

Tarik
Tarik

Reputation: 118

On a related note, a lightweight version of jQuery is Zepto, which is pretty much jQuery without a bunch of extra code for compatibility with browsers that don't play nice. I think it is what the OP thought jQuery mobile is.

Upvotes: 0

naugtur
naugtur

Reputation: 16915

First of all: jQuery Mobile is a new framework and it's not in any way a version/remake of jQuery nor jQuery UI. It requires jQuery as a base.

It also is not similiar to jQuery UI.

jQuery Mobile is supposed to be used to progressively enhance applications so that they work on most platforms and look as good as possible. Most of jQuery Mobile magic is done with HTML5 data-* markup and a whole application can be done with zero lines of javascript.

For mobile browsers that fully support javascript more advanced functions can be used and jQuery Mobile provides some useful stuff for mobile development, such as tap or swipe events.

Upvotes: 4

Davide Piras
Davide Piras

Reputation: 44605

It looks like jQuery mobile is another version of original jQuery while jQuery UI will be also made available for mobiles, at least some controls.

I have found this post online which describes it:

http://jquery-howto.blogspot.com/2010/08/jquery-mobile.html

so for what I understand, jQuery mobile is a lightweight version of jQuery.

Upvotes: -2

Related Questions