DamianosImagmanyday
New Member
I'm looking for a JS rule that removes a div if contentheight < 500I've gotten the following working for an image but need to replace the image resize with a command to remove a div:\[code\] $(document).ready(function() { function imageresize() { var contentheight = $('#maincontainer').height(); if ((contentheight) < '500'){ $('.fluidimage').attr('src','images/big-sm.jpg'); } else { $('.fluidimage').attr('src','images/big.jpg'); } } imageresize();//Triggers when document first loads $(window).bind("resize", function(){//Adjusts image when browser resized imageresize(); }); }); \[/code\]All help greatly appreciated