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').observe('click', respond);
function respond(event) {
alert("hello");
}
Why isnt this working?? Please help!