开发者

adapting collapsible checkbox tree plugin for radio buttons

I'm making use of Red Carrot's Checkbox Tree plugin but trying to adapt it to use with a nested list of radio buttons.

Replacing all references to ‘checkbox’ with ‘radio’ works for the most part, but the uncheckChildren option does not work – When selecting a different parent option, the first selected parent is deselected (as you would rightly expect with radio buttons!) but any children of the deselected parent remain selected, and the list does not collapse. This is less than ideal, as it means 开发者_C百科the user can select a child of an unselected parent. Can anyone suggest what I might need to change in the script to achieve the same behaviour as with checkboxes (though retaining radio button behaviour of single selection allowed at each level)?


Try the Jquery DynaTree Plugin

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜