I have div and button. when i click button this div adds class and its width become 150px; I want that when this div become 150px show something in console.log. but this console dont be shown until div becomes 150px; can someone help me please? can u show me code example? here is code what i have now:
html:
<div class="test"></div>
<button class="button">BUTTON</button>
Js:
$('.button').click(function(){
$( ".test" ).addClass( "addTest" );
})
CSS:
.test{
width:0px;
}
.addTest{
width:150px;
}