is it possible to bind change to a style of an element with JQuery?
Here's the code I have :
$(".bnotify").on("change",$(".bnotify").css("display"),function(){
alert("changed");
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="bnotify" style="width:20px;height:20px;background:red"></div>
<input type="submit" onclick="$('.bnotify').toggle()">
So is there any way to show an alert on .bnotify's display change?
Thank you very much for spending your precious time with my issue.
Thank you very much for help.