I'm using Bootstrap to style my table, which is a basic to do list. I wanted to add a form input in one cell and check button in the cell directly next to it on the right. I wanted to use id="check-button"
. I think when I run my JavaScript and jQuery, I would need to use class if I want to add more buttons. I am now setting my HTML and JS.
Here is what I have for the HTML:
<div class = "container">
<div class="col-md-8">
<table class="table table-hover">
<thead>
<tr>
<td>To Do</td>
<td> Status</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="input-group">
<span class="input-group-addon">
<input type="text" class="form-control" aria-label="..." placeholder="Text input" id="disabledInput">
</span>
</div><!-- /input-group -->
</td>
<td id="check-button">
<input type="checkbox" aria-label="...">
</td>
</tr>
</tbody>
</table>
</div>