Почему у объекта [ID] нет метода 'Animate'?

Я создал здесь скрипку: http://jsfiddle.net/surfjam/zWWpz/

Не могу понять, почему анимация работает в двух экземплярах, а в другом нет, в консоли пишет "...нет метода "Анимировать"..."

jQuery(document).ready(function($) {

    var effect = "inm-shine";

    $(".circle-button-border").mouseenter(function() {

        $(this).addClass(effect);

        $(this).stop(true, true).animate({
            opacity: '0.85'
        }, 'slow').css({
            'z-index': '100',
            top: '0',
            left: '0'
        });

//Error coming from this line...

        $(this).parents('div:eq(0)').attr('id').animate({
            height: '120%',
            left: '0',
            top: '0',
            width: '120%'
        }, 'fast');

    }).mouseleave(function() {
        $(this).animate({
            opacity: '0'
        }, 'fast');
    });
});​

РЕШЕНИЕ:

Спасибо за предложения ниже я переработал строку задачи следующим образом:

var myId = $(this).parents('div:eq(0)').attr('id');
        $('#' + myId).animate({
            height: '110%',
            left: '0',
            top: '0',
            width: 110%
        }, 'fast');

Спасибо за помощь!

0
задан Michael Davis 18 March 2012 в 21:17
поделиться