Jump to content

detect if user is on mobile device


teez

Recommended Posts

Posted

hello. 

I have button like

<a href='' id='' class='class A'></a>

and I need to change this class if user is using mobile version. What is the best way to do it?

 

<a href='' id='' class='if mobile then class A else class B'></a>

regards

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...