brandoncluff brandoncluff - 1 year ago 74
HTML Question

Bootstrap Dropdown in Table Detail

What is the right way to add a dropdown? I'm passing this info to a JS/PHP and everything else is working... I am hoping to change as little as possible!

<table id="create">
<td><input style="min-width: 180px" class="form-control name" type="text" name="name" placeholder="Contest Name"></td>
<td><input class="form-control start" type="date" name="start" placeholder="Start Date (mm/dd/yyyy)"></td>
<td><input class="form-control end" type="date" name="end" placeholder="End Date (mm/dd/yyyy)"></td>
<td><input class="form-control active" type="checkbox" name="active" value="1" CHECKED></td>
<td><input class="btn btn-success create" type="button" name="create" value="Create"></td>

Thank you!


Unless I am missing something this is pretty straight forward since the documentation is found here. Just scroll down to the select section to read about it. Add this code in your form.

<select class="form-control">