get the checkbox items to display in other place

I set some checkbox items in a form. I will select the checkbox items. Then I want to display the selected checkbox items to display its content in a container or editor.

It is work or not ? How about the method ?

Thanks for your help !

hi

myForm.attachEvent(“onChange”, function(name, value, isChecked){
if (myForm.getItemType(name) == “checkbox”) {
myForm.setItemValue(…)
}
})