I have this code which I think is pretty straight forward:
$(function() {
$(".box").click(function(){
var origSize = $(this).height;
console.log (origSize);
});
});
But I just get function() appearing in my console. I’m not sure whats gone wrong.
Should be:
Read the docs,
heightis a function, not a property.