Topic: [Prototype] adding events

I would have thought if I added this in my application.js

$$('div.attendance_mark input').onclick = test.checked.bind(test);

that it would generate an .onclick attribute to that input.