For the following Element, I am trying to detect a inline style change:
<div class="webform-component--personal-details" style="display: none;">
<p> This that this that.</p>
</div>
In the above example, style could be either style="display: none;" or style="display: block;" Here is what I tried, but it didn't work:
$('.webform-component--personal-details').on('stylechanged', function () {
console.log('css changed');
});