48
rated 0 times
[
50]
[
2]
/ answers: 1 / hits: 60643
/ 11 Years ago, mon, march 4, 2013, 12:00:00
How can I call for this(or any) JS function to be run again whenever the Browser window is resized?
<script type=text/javascript>
function setEqualHeight(e) {
var t = 0;
e.each(function () {
currentHeight = $(this).height();
if (currentHeight > t) {
t = currentHeight
}
});
e.height(t)
}
$(document).ready(function () {
setEqualHeight($(.border))
})
</script>
More From » jquery