I might be late to this show but this is what I use: // get the form DOM var form = $('myform'); // Now, disable the form! form[form.disabled ? 'enable' : 'disable'](); // now show it as visually disabled $('myform').setStyle({opacity: 0.5});
On Wed, Jan 23, 2013 at 11:15 AM, Köd <kodping...@gmail.com> wrote: > Thanks for your replies. I will look into them, though I have tried to get > multiple to work - without success. I was wondering if you had read my post > on stackoverflow? Maybe you could see if there was a different solution to > my little issue, it's driving me mad! > > Den onsdag den 23. januar 2013 13.48.43 UTC+1 skrev Köd: >> >> Hi guys >> * >> To get a full view of my problem, please read: http://stackoverflow.com/ >> questions/14478903/script-aculo-us-toggle-appear-on-multiple-divs >> *______________________________**_______________ >> >> *I have a simple question to ask you:* >> Is it possible to use effect.opacity as a toggle effect? >> >> The reason why I'm asking this is because when using effect.opacity the >> assigned function can be spammed, hence making the div appear/fade over and >> over. I was thinking that it might would be possible to do so by changing >> something in the scriptaculous.js or effects.js file. >> >> >> If this is not possible, I would like to ask how you can use >> Effect.Toggle (appear) on multiple div's within an <a href> containing an >> onclick. An example: >> >> <li><a href="#" onclick="Effect.toggle('DIV1, DIV2, DIV3', 'appear'); return >> false;"></a> >> >> >> Thanks. >> > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/prototype-scriptaculous/-/4HT0A3QJPDYJ. > To post to this group, send email to > prototype-scriptaculous@googlegroups.com. > To unsubscribe from this group, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out.