$(this) が div.content を表すことができるように、h1 がクリックされた後に specialHouse 関数を正しく呼び出す方法 現在、以下は「Uncaught TypeError: Object [object Object] has no method 'specialHouse'」というエラーで機能しません。
function specialHouse()
{
$(this).slideDown(500, function(){
$(this).delay(2000).slideUp();
});
};
$('div.content').hide();
$('h1').on('click', function(){
$(this).next('div.content').specialHouse();
})
助けてくれてありがとう:)