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

jQuery .hasClass() method

0 votes
added May 24 in jQuery by LC Marshal Lieutenant (13,870 points)

To use hasClass() method  for more than 1 class

if($('body').hasClass('page-area-outlook') || $('body').hasClass('page-project-outlook')) {
    var outlookMap = $('#outlook-map');
        if(heatmap == null){

1 Response

0 votes
responded May 24 by LC Marshal Lieutenant (13,870 points)

if body hasClass() ,hide() element

if($('body').hasClass('newlaunches')) {
} - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.