I have this code:
<div class="checkbox">
<label>
<input type="checkbox" data-bind="checked: params.availToStream">
{{ trans('stream::main.onlyAvailToStream') }}
</label>
</div>
I want to have the checkbox checked by default, I have tried the following but cannot get it to work.
<input type="checkbox" data-bind="checked: params.availToStream" selected>
<input type="checkbox" data-bind="checked: params.availToStream" checked="checked">
<input type="checkbox" data-bind="checked: params.availToStream" checked>
Aucun commentaire:
Enregistrer un commentaire