Basically I have 8 roles. I need to be able to select one or many.
However in 4 of them one can only be selected.

I could separate it but since it's all for the same thing ...
... this is why I am not using radio .. I need to be able to select
more than one.

It is working

Thank You,
Miguel

On Feb 23, 9:38 pm, MorningZ <morni...@gmail.com> wrote:
> Easier/makes-more-sense:
> - Why not use a radio box group then?
>
> Otherwise:
> - Using jQuery to mimic functionality w/ CheckBox
>
> <input type="checkbox" id="A" />
> <input type="checkbox" id="B" />
> <input type="checkbox" id="C" />
> <input type="checkbox" id="D" />
>
> $(document).ready(function() {
>        $("#A, #B, #C, #D").change(function() {
>              var ThisID = this.id;
>              $("#A, #B, #C, #D").each(function() {
>                    if (this.id != ThisID) { this.checked = false; }
>              })
>        });
>
> })
>
> On Feb 23, 4:18 pm, shapper <mdmo...@gmail.com> wrote:
>
> > Hello,
>
> > I have 8 inputs of type checkbox.
>
> > On 4 of them (A, B, C and D) I want to deselect the other three when
> > one is selected.
>
> > For example, if I select A I want B, C and D to be deselected.
> > If I select  C I want A, B and D to be deselected.
>
> > Is it possible to create this functionality?
>
> > Thanks,
> > Miguel

Reply via email to