Jump to content

detect if user is on mobile device


Recommended Posts


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>


Link to comment
Share on other sites


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

  • Recently Browsing   0 members

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