I have two checkboxes. if I check the first I want to uncheck others. There will be multiple instances of this so I look for a solution that affects a single group. Any jquery way to achieve this?
<li>
<label>
<input type="checkbox" name="pgggo-sort-acend" <?php if(!empty($pgggo_acend_var) && $pgggo_acend_var == 'on' ){ echo "checked"; }elseif(empty($pgggo_decend_var) && empty($pgggo_acend_var) && !empty($pgggo_args['order'] && $pgggo_args['order']=='ASC')){echo "checked"; } ?>>
<div class="icon-box pgggocheckboxaccend">
<i class="fa fa-arrow-circle-o-down" area-hidden="true"></i>
</div>
</label>
<label>
<input type="checkbox" name="pgggo-sort-decend"<?php if(!empty($pgggo_decend_var) && $pgggo_decend_var == 'on' ){ echo "checked"; }elseif(empty($pgggo_decend_var) && empty($pgggo_acend_var) && !empty($pgggo_args['order'] && $pgggo_args['order']=='DESC')){echo "checked"; } ?>>
<div class="icon-box pgggocheckboxdecend">
<i class="fa fa-arrow-circle-o-up" area-hidden="true"></i>
</div>
</label>
</li>
Please help :(
Aucun commentaire:
Enregistrer un commentaire