jeudi 5 mars 2015

how to do three toogle checkbox?

i reallt need help. currently my checkbox only works for tow options. what if i have 3 options. default,1column,3column.


my html code



<div class="col-md-6">
<fieldset>
<div class="form-group">
<label class="control-label" for="label90">Layout Options: </label>
<div class="controls">
<input name="layout_options" type="checkbox" class="checkbox_switch" value="1" <?php echo set_checkbox('layout_options', '1', (bool) $site->layout_options); ?>>
</div>
</div>
</fieldset>
</div>


js



$(document).ready(function () {
$(".checkbox_switch").bootstrapSwitch({
size: "small",
onText: "Default",
offText: "3Column",
});
});


currently it only display default and 3 column. what if i wanted to add one more which is '1 column' at the middle . can anyone help?


Aucun commentaire:

Enregistrer un commentaire