Forums

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

Home Forums JavaScript ***HOW TO DETECT MOBILE DEVICES USING JQUERY*** Reply To: ***HOW TO DETECT MOBILE DEVICES USING JQUERY***

#147279
tradarcher
Participant

@rahuldsg
thanks so much. I used

if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
// some code..
}

And it works great!!!