The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Using Jquery Mobile in only my two smallest responsive layouts.

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #36243

    I would like to use jquery mobile in my responsive layout, but only on the smaller versions of the site, of course. How would I go about doing that exactly? Because it looks like JQM needs to have those added html elements, like “div data-role=”page”, div data-role=”header”, div data-role=”content”, etc. I would only want those elements in there for like the 480px and 320px versions.

    I’m thinking that I could add in those needed html elements only when the screen is at a certain width? I’m not good with writing my own jquery though. What would be the best way to that?


Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.