I am currently utilizing Bootstrap to style my table, which serves as a basic to-do list. My intention is to insert a form input into one cell and place a check button in the cell adjacent to it on the right side. To achieve this, I plan to utilize id="check-button"
. In the event that I wish to include additional buttons through JavaScript and jQuery, I understand the necessity of using classes. Currently, I am in the process of setting up my HTML and JS.
Below is the snippet of HTML code:
<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>