KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
jQuery has the resize() - event, but it just work with window. jQuery(window).resize(function() { /* What ever */ }); This works fine! But when I want to add the event to a div element it doesn't work. E.g. jQuery('div').resize(function() { /* What ever */ }); I want to start an callback when the size of a div-element has changed. I don't want to start a resizable - event – just a event to check if the size of a div - element has changed. Is there any solution to do this?
Tags (comma-separated)
Save Edits
Cancel