jquery - Select only one element at a time from a group ("OR" case) -
i have group or list of elements, , need select 1 element list, in "or" case: select 1 or one, not more one.
in following demo you'll see accordion has 2 lists, top , bottom. top list (title 1) should have "or" case; bottom list working fine "and" case.
i'm not sure if solution needs separate function work (which i've tried myself, no success), or if has included in main function.
i think need give corresponding ul own class able target it, that's did: <ul class="acitem or-list">
.
fyi, did not create majority of script, received doing since i'm starting delve jquery.
any on appreciated.
thanks.
have considered radio button group instead of list 1?
you seem trying replicate behavior, , far more robust use compnents have "or" behavior naturally. can pretty theming radio buttons jquery ui. see demo.
in similar way, replace list 2 checkboxes (demo here).
Comments
Post a Comment