Try this:
a href=javascript:; id=toggleswitchToggle Blind/a
Below goes in a script tag in the head
document.observe('dom:loaded', function (){
$('toggleswitch').observe('click', function () {
$$('.class2').each(function (d) {
Effect.toggle(d, 'blind');
});
});
});
On
Thanks Rick but I found an other way 2 minutes ago
I added this under the head
script type=text/javascript
function blind1(){
Effect.toggle('id 1 here','BLIND'); return false;
}
function blind2(){
Effect.toggle('id 2 here','BLIND'); return false;
}
/script
And loaded the functions onclick
a
The way i shared with you allows you to do this task without repeating
without repeating the code.
Yes... i did that on purpose.
On Fri, Jun 12, 2009 at 10:49 AM, Gatsman jgats...@gmail.com wrote:
Thanks Rick but I found an other way 2 minutes ago
I added this under the head
script