In Pure Javascript and jQuery, How to detect if the width of an element has changed? For eg, if the width of an element changes as per css media queries when window is resized, how to detect it?
I have tried -
$(element).resize(function() {});
But that did not work.
I have found solutions on SO about plug-ins. Yes they work, but any pure Javascript and jquery based solution?