Is it possible to have to two checkboxes appear as blank on pageload.
But if the user clicks an option, then they can never click off it – so at the moment the user can toggle between the options and you can only tick once. However if they press the ticked box twice it removes the tick.
HTML
My Billing Address is the same <input type="checkbox" class="sameCheck" name="toggleOracleAddress" id="toggleOracleAddress" value="SAME" /> <br /> <br />
My Billing Address is the different <input type="checkbox" class="sameDifferent" name="toggleOracleAddress" id="toggleOracleAddress" value="DIFFERENT" />
jQUERY
$(document).ready(function(){
//////////////////
//#### SAME ADDRESS
//////////////////
$('.sameCheck').click(function() {
$('.sameDifferent').removeAttr('checked');
$('#proceedIsOn').slideUp();
});
//////////////////
//#### DIFFERENT ADDRESS
//////////////////
$('.sameDifferent').click(function() {
$('.sameCheck').removeAttr('checked');
$('#proceedIsOn').slideDown();
});
});
JSFIDDLE HERE http://jsfiddle.net/mRwMt/
Just set it to checked on every click :
FIDDLE
or to avoid the sliding as well :
Or to just toggle between boxes :
FIDDLE