i have a resizable svg element in my html body tag. However, when I resize it, no function is called.
Here's my jQuery code:
$(document).ready(function () {
$('body').on('resize', 'svg', function() {
console.log('svg is resizing');
});
});
When the svg element's size changes, this function should be called. However, I don't see any "svg is resizing" output in my console. Please explain why this code isn't being called.