is there is any way to get the width and height of a resizable div while resizing开发者_C百科 i try the following code but it resulted as undefined in alert box i am using jQuery resizable
$("#msc_div").resizable({
start: function() {
var offset = $(this).offset();
alert(offset.height);
alert(offset.width);
}
});
$("#msc_div").resizable({
start: function() {
var t = $(this);
alert( t.height() );
alert( t.width() );
}
});
See:
- http://api.jquery.com/height/
- http://api.jquery.com/width/
精彩评论