<div class="modal fade" id="tagModal" tabindex="-1" role="dialog" aria-labelledby="tagModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="tagModalLabel">User tags</h4>
      </div>
      <div class="modal-body">
        <div class="alert alert-info">
          <strong>Scan</strong> a tag to add!
        </div>
        <div id="tags">
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>


<div class="modal fade" id="tagModal" tabindex="-1" role="dialog" aria-labelledby="tagModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="tagModalLabel">User tags</h4>
      </div>
      <div class="modal-body">
        <div class="alert alert-info">
          <strong>Scan</strong> a tag to add!
        </div>
        <div id="tags">
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" autofocus>Close</button>
      </div>
    </div>
  </div>
</div>


Add autofocus to tag modal close button
Add autofocus to tag modal close button
