I have a table with some td that align vertically. When clicked, the td height increases, and if another td is clicked, the previous one resumes its original size. I also need the element to return to its original size when clicked again.
So far, I've only been able to change the height on the 1st click:
$('#tabela_funcoes td').click(function() {
$(this).animate({
height: '300px'
}, "slow" )
})