开发者

Checkbox + Listbox selection

开发者 https://www.devze.com 2023-02-11 13:49 出处:网络
I have one checkbox -开发者_Go百科 when its checkedall the items in listbox are selected. I want when all the items are selected with the checkboxand i click on some of the items- all other items to b

I have one checkbox -开发者_Go百科 when its checked all the items in listbox are selected. I want when all the items are selected with the checkbox and i click on some of the items - all other items to be unckecked and the item I clicked on to stay checked - how to do that?


You have to do this manually: uncheck all items and check the one you clicked.

However, I don't know if it's possible that the user can select more then one item. If so, you have to keep in mind that when the checkbox isn't checked, you don't have to uncheck the other items in the listbox.

0

精彩评论

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

关注公众号