-1
I have a table with some <td>
align vertically. When clicked, the height of the <td>
increases, and if another is clicked <td>
, the previous one back to its original size. I also need the element to return to its original size when clicked again.
So far, I’ve only managed to change the height in the first click:
$('#tabela_funcoes td').click(function() {
$(this).animate({
height: '300px'
}, "slow" )
})
A toggleClass wouldn’t it? [http://api.jquery.com/toggleclass/]
– GustavoAdolfo