I am new to the prototype framework and am trying something really simple and failing. I am trying to respond to a click event on a button like so:
$$(\'.btn\')
Can be also be done with a single-liner, as someone already suggested in a comment:
$$('.btn').invoke('observe', 'click', respond);