Are you first timer at Why not join us and start exchange your knowledge with everyone. Register today!

Screen size condition with jQuery

0 votes
added Feb 21 in jQuery by birdygeek Sergeant (2,000 points)
if ($(window).width() < 768) {
   alert('This is tab screen size');
else {
   alert('This is desktop size');

Please log in or register to response this solution.