I am trying to set a height of an element back to its original state but the element is hidden by default (display:none) and is only activated by an on click event.
How do I go about getting the height of the element without actually clicking on the element first?
Right now I'm using this code but it's defining the height as 0 of course, because the element hasn't been displayed yet.
var initHeightInner = $('#div').find('.list').height();