Having a slight issue with my script. I am trying to retrieve the height of an element and use this value as the top position in CSS for another element. Here is my code snippet:
var imageHeight = $('.photo_panel img').height();
$('.close_button').css('top', imageHeight + 'px');