Hello. Began to deal with jQuery. Writing:
<script type="text/javascript"> $(".right").hover(function() { $(".right").animate( { width: '15%' }, 1500, function() { $(this).html("<p><a href='#'> Оставить отзыв</a> </p> "); }) })
and then I try to do something like this with "Leave a review":
$(".right pa").toggle( function() { $(".left").animate( { opacity: '1' }, 1500); }, function() { $(".left").animate( { opacity: '0' }, 1500); })
but nothing happens. How correctly to address these elements, prompt, please?