On Feb 24, 7:18 am, shapper 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.
>
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
Easier/makes-more-sense:
- Why not use a radio box group then?
Otherwise:
- Using jQuery to mimic functionality w/ CheckBox
$(document).ready(function() {
$("#A, #B, #C, #D").change(function() {
var ThisID = this.id;
$("#A, #B, #C, #D").each(function() {
3 matches
Mail list logo