dojo onchange event

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I have a dojo checkbox. I made it dynamically.
But on change event didn't work correctly.
my code is :
 check=(ctrl['value']==true ? "checked=''" : "");
 def="<div class='checkbox' dir='rtl' id='"+widgetId+'div'+"'><input
widgetId='"+widgetId+"' name='"+"' dojoType='CheckBox' "+check+"
I have a dojo floating pane and I finally do this:

and I call my onchange function with this:
dojo.event.connect(div, 'onchange', this,'changeTBState');
Is there any body to help me?

Site Timeline