Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var height = parseInt($(".divClass").css("height"));
- var width = parseInt($(".divClass").css("width"));
- $(".divClass").css({"height":height + "px","width":width + "px"});
- $("#" + id).css({"height":height * 1.1 + "px","width":width * 1.1 + "px"});
- var height, width;
- $('.divClass').click(function() {
- height = $(this).height();
- width = $(this).width();
- $(this).css({ 'height': ( height * 1.1 ) + 'px', 'width': ( width * 1.1 ) + 'px' });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement