Yes, It's possible to check different media screen in jQuery for add condition.
Following example for different screen:
$(window).resize(function(){
if ($(window).width() <= 300)
{
// do something here
} else if ($(window).width() <= 800){
// do something here
} else if ($(window).width() <= 970){
// do something here
} else {
// do something here for desktop full screen
}
});
Enjoy!
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here.
ReplyDeleteKindly keep blogging. If anyone wants to become a Front end developer learn from javascript and jquery training in chennai .
or learn thru Javascript Training in Chennai.
Nowadays JavaScript has tons of job opportunities on various vertical industry. javascript and jquery training in chennai