I have to disable and enable three checkboxes.
if the user clicks on one the other will be disabled
<input type="checkbox" class="rambo" value='1' /> 45
<input type="checkbox" class="rambo" value='2' /> 56
<input type="checkbox" class="rambo" value='3' /> 56
so i need a function that gives me this via jquery
thanks for the advice
For this sort of functionality, you should look into using radio buttons. These are best suited for mutually exclusive options compared to check boxes.
However, if you need to use check boxes, you could use the following:
http://jsfiddle.net/Curt/qGbtQ/1/
And here is a solution which will uncheck all but the selected (like a radio button)
http://jsfiddle.net/Curt/qGbtQ/