takien
takien

Reputation: 1074

How to do something after element's resized

I have div#myid that is resizeable with minHeight = 30px;

I want to do something to another div div#myotherid, e.g. adding new class..

Have do trying the following, but no luck..

$(document).ready(function() {

if ( $( "#myid" ).css( "height" ) == "30px" ) {
    $( "#myotherid" ).addClass( "newclass" );
    }

});

So, what is the other way to do??

Thanks

Upvotes: 0

Views: 68

Answers (1)

miku
miku

Reputation: 188134

You might want to look at http://docs.jquery.com/Events/resize.

Upvotes: 1

Related Questions