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