Create buttons for a form (two values, yes, no)

0

I have this form, that I want that at the moment of being filled out I see only two options to read, something like a switch, yes or no; using bootstrap.

<form>
<div class="editor-label">
   @Html.LabelFor(model => model.lucesuno)
</div>
   <div class="editor-field">
    @Html.EditorFor(model => model.lucesuno)
    @Html.ValidationMessageFor(model => model.lucesuno)
</div>
<p>
<input type="submit" value="crear" />
</p>
</form>
    
asked by DC-Rom 01.10.2018 в 21:32
source

1 answer

0

They are toggle type buttons. There is a perfect material angular component for what you need, anyway look at the link that I leave Several are created with different styles and behaviors link If you find it useful mark the answer as a solution. Greetings

    
answered by 02.10.2018 в 08:19