Thanks for your thoughts Brian,
fortunately the answer from Wycat works perfectly.
I wanted to use Radio-buttons at first, but it seems that it is impossible
to return a group to having none-selected.
Citrus wrote:
>
> jazzle,
>
> You're going to have to code your way out of this one. Ultimately, you
> need to write an onClick or onChange event that looks at the other
> checkboxes to see if they are checked, and determine what to do from
> there.
>
> Here's a thought (off the top, untested):
> $('.noneorone:checkbox').bind('click', function(){
> if ( $('.noneorone:checked').length > 1 && !this.checked ) return
> false; // returning false prevents the "click" action, which would
> stop the checkbox from being checked.
> })
>
> Maybe radio buttons are a better choice for this? It'll save you some
> work. :)
>
> - Brian
>
--
View this message in context:
http://www.nabble.com/Select-_other_-elements-%28with-a-specific-class%29-in-same-tr-tf2958743.html#a8294688
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/