Wow, that's one crazy ternary right there...
Of course we can obfuscate it even more:
Event.observe(window, 'load', function () {
$('radios').observe('click', (function() {
$('toShow')[$('#radios input:checked[type=radio]
[value=yes]').length ? 'show' : 'hide']();
})());
});
j/k
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---