Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does jQuery mobile work in jsfiddle.net?

I have this simple fiddle, which uses jQuery mobile, but it's not working.

Q: What am I missing?

like image 213
Phillip Senn Avatar asked Aug 12 '11 20:08

Phillip Senn


1 Answers

Under Manage Resources you need to add the jQM css file as well:

  • http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css

Optionally you can also add the jQM framework as well, but I see that jsFiddle is adding this as an option now

  • http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.js

Live Example:

  • http://jsfiddle.net/phillpafford/wvVmT/2/
like image 112
Phill Pafford Avatar answered Oct 20 '22 00:10

Phill Pafford