I want to remove class from div but selector class like: I want to remove only 'check' from below div.
Note: class name are dynamic. Its name can be anything.
<div class="pop check"></div>
$(function(){
$('.pop').not('pop').removeClass() // not working
})
working code
$(function(){
$('.pop').removeClass().addClass('pop')
})
Is there any better way to do this