클릭하면 div가 확장되고 다른 클릭하면 다시 축소됩니다. 이 함수를 호출하면 아무 일도 일어나지 않습니다.Jquery toggle animation 클릭시
jQuery를 코드 :
$(".panel").toggle(function()
{
$(this).click(function()
{
$(this).animate({width:'300px',height:'300px'}, 200);
});
},
function()
{
$(this).click(function()
{
$(this).animate({width:'152px',height:'152px'}, 200);
});
});
[fn.toggle (handler (eventObject), handler (eventObject) ...)가있는 곳은 어디로 갔습니까?] (http://stackoverflow.com/questions/14301935/where-has-fn-toggle- handlereventobject-handlereventobject-gone) – j08691
JQuery의 어떤 버전입니까? 또한, 더 많은 코드가있는 jsbin을 만드십시오. – JClaspill
가능한 경우 html 코드도 제공 할 수 있습니까? – Edward