I'm trying to get a button to reset one of the values in my table, however it's not working. Here is the code:
HTML
<table class="table table-bordered" id="table">
  <thead>
    <tr>
      <th>Time</th>
      <th>Header</th>
      <th>Header</th>
      <th>Header</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td id="time" data-default="00:00">48:25</td>
      <td>Data</td>
      <td>Data</td>
      <td>Data</td>
    </tr>
  </tbody>
</table>
<button type="button" class="btn btn-block btn-danger" id="reset">Reset</button>
jQuery
  $(document).ready(function() {
        $("#reset").on("click", function() {
          $('#table').find('#time').each(function() {
            $(this).val($(this).attr("data-default"));
          });
        });
Any help would be greatly appreciated.