As the title says, the jQuery event resize() is not firing when the width of a input box changes. According to the jQuery API documentation, resize event is sent to the (window) handler. So my question is, what other solution do I have to listen to a resize event.
I'm currently using the transition attribute in CSS, rather than using jQuery animate to alter the inputs width. It's much cleaner and smoother in CSS, so I would like to keep it like so. If anyone has any other solutions, please list them below.
My first attempt was something like this
$('input').resize(function() {
$(this).val('Resize? Nope!');
});
Here is a fiddle for the resize event: http://jsfiddle.net/Yw9CT/