I was using jquery 1.3 on my website. Today I updated it to newest 1.9 and my toggle/animate script stopped to work.
The code looks like that:
<a href="javascript: void(0);" id="toggler">Show more</a>
<div id="tcontent"> … </div>
$(document).ready(function() {
$('#toggler').toggle(
function() {
$('#tcontent').animate({height: "70"}, 800);
},
function() {
$('#tcontent').animate({height: "6"}, 800);
});
});
What is wrong with this code? When I include back jquery 1.3 to my html everything works fine.