Give help. Get help.

  • # March 21, 2013 at 11:17 am


    I am having a bit of trouble making jQuery rearrange two divs when the browser width is mobile.

    At the moment I am using this code:

    But in my console I am getting “Uncaught ReferenceError: mobile is not defined”

    Any ideas?

    # March 21, 2013 at 11:23 am

    Is ‘mobile’ a JQ hook?

    I can’t find it referenced in the documentation?

    # March 21, 2013 at 11:25 am

    If it is….and I confess to being a JS/JQ noob….don’t you have to wrap the js you are using in a self invoking function?

    if (mobile == true) {

    # March 21, 2013 at 11:27 am

    Not as far as I know.

    See caveats above though.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.