It works wonders for unobtrusive scripting
$$('a.noFollow').each(function(el) {
  el.onclick = function() { return(false); }
});

ok, so not the finest thing to do, but now all links with the class of noFollow won't do squat :)

Andreas

I saw something about the $$ selector on a review site, but I see
nothing about this in the documentation. Can someone point me to it?

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to