Pregunta

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 :)

¿Fue útil?

Solución

$('button_id').observe('click', function() {
    Effect.toggle('div_id', 'blind');
});
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top