In this script I want to put my height as big as my width. This works if you shrink your browser and then refresh your browser. But now I want him to do it when I resize the browser without having to refresh. Have tried to resize window but it didn't worked, perhaps i used it wrong.
<script type="text/javascript">
var height = $('.circle img').width();
$('.circle img').css({ 'height': height + 'px' });
</script>