Skip to content

Checkbox decorator #9

@bert-w

Description

@bert-w

Is the checkbox decorator correct for this plugin?

Yours:

 <div class="checkbox">
            <label>
            <input type="hidden" name="checkbox" value="0">
            <input type="checkbox" name="checkbox" id="checkbox" value="1">
            Remember me
            </label>
        </div>

Theirs ( bootstrap 3 docs https://getbootstrap.com/docs/3.3/css/#forms-example ) :

<div class="checkbox"> <label> <input type="checkbox"> Check me out </label> </div>

When I'm sending the form with the first syntax, i receive an array for the checkbox key (since it is in 2 inputs).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions