Here is the code I am working with:
$(function() {
$('#team-ch').click(function() {
$('#team-camb-hert').height('auto');
});
});
I am trying to change the height of a div when a link is clicked. After adding an alert inside the function, I can see that it is indeed running when the link is clicked. However, the height of the target div remains unchanged. The target div initially has a height of 0 set in the CSS file, but this value is not being updated.
If anyone has any insight into what may be causing this issue, please share your thoughts!