Skip to content

Instantly share code, notes, and snippets.

@shankariyerr shankariyerr/ua.js
Created May 30, 2016

Embed
What would you like to do?
Hide HTML elements for iphone using useragent
$( document ).ready(function() {
var iphone = /iPhone/i.test(navigator.userAgent);
if (iphone) {
$('.yourclass').css("display","none");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.