I have this code:
<div class="editor-label">
@Html.LabelFor(model => model.Ticket)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Ticket)
@Html.ValidationMessageFor(model => model.Ticket)
</div>
How do I get the label and checkbox(in this case its a checkbox) on the same line? I have tried removing the divs and they still come out on different lines.
Thank you.
Just remove the divs separating them, this works for me, I get
Ticket []with this.Also, use
CheckBoxForif you know it is aCheckBoxI have also used this code as the OP stated this is his code
I get
GetAll []GetAllis aboolin my ViewModelAlso used this
I get
GetAll []And this
I get
GetAll []In every case my tests are label and checkbox are inline