Forums

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

Home Forums JavaScript Methods for showing and hiding element Reply To: Methods for showing and hiding element

#176027
Podders
Participant

@elkrocke

You really don’t need to include jQuery Mobile,

I’d be tempted to do a feature detection first to see if the device using the plugin supports touch, if it does then trigger the menu on touch/click, if not, then trigger the menu on hover,

Check out the method that Modernizr uses to detect for touch enabled browsers here