How to get value of selected checkbox?
Here is my code running from change event of the checkbox,
var ch:CheckBox = event.currentTarget as CheckBox;
Alert.show(ch.data.toString())
But unable to get selected checkbox value. It's returning [Object][Object]. Even 开发者_如何学运维I tried valueOf() but no success.
What am I missing ?
try using
ch.selected;
精彩评论