DOJO 1.6 and connecting events on plain HTML components
http://stackoverflow.com/questions/15074054/dojo-1-6-and-connecting-events-on-plain-html-components
HTML
<input type="radio" class="radiobutton">
<input type="radio" class="radiobutton">
JavaScript
dojo.addOnLoad(function() {
var radioButtons = dojo.query(".radiobutton"); // this.domNode removed. We are not inside a widget.
// var func = dojo.hitch(this, hello());
// the problem is hello() is calling the function and passing the result to the hitch method.
// it should be var func = dojo.hitch(this, hello);
// but hitch isn't necessary
var fnHello = function(){
alert("Hello");
};
dojo.connect(radioButtons[0], "onclick", fnHello);
});