문제

I used this example to hide and show some divs on my site:

http://papermashup.com/simple-jquery-showhide-div/

How would I write that using Prototype/Scriptaculous? As I saw they also have show and hide methods?

Thans for helping :)

도움이 되었습니까?

해결책

$('button_id').observe('click', function() {
    Effect.toggle('div_id', 'blind');
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top