Variable "if" doesn't work with onclick="" plugin attribute?

  • Hi everybody,

    I've a plugin for all devices. I'd like to set the onclick attribute only for desktop. I used the "if" var, didn't work? I've checked the doc syntax about "if" i've seen no restriction?!

    Thanks for any help. *smile*
    Steph

  • Hi,

    there are not if restrictions of course,

    how are you testing?
    have tested on a real device or were you using the iphone/ipad simulator (or the simulatedevice setting),
    when just using the iphone/ipad useragent the desktop will be still detected,

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!