i try to detect my spesifict class if it have a new class extra or changed
$('.tab').on('click',function(){
$(this).addClass('active');
alert('activated');
})
$('.tab').on('change', '.active',function(){
alert('changed');
})
heres the code https://jsfiddle.net/k3ze0k27/
i try to use on change but its look like i make a mistake inside the function.
anyone can help me with this problem? thankyou