开发者

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜