Skip to content

Instantly share code, notes, and snippets.

@ohiofi
Created January 18, 2018 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohiofi/49ad60f89b8efd6bb8111d5ea4ccf815 to your computer and use it in GitHub Desktop.
Save ohiofi/49ad60f89b8efd6bb8111d5ea4ccf815 to your computer and use it in GitHub Desktop.
Read-only text input form with Use button for JS with classes for Bootstrap
<label for="text">Your Backpack:</label><br>
<div class="input-group">
<input type="text" class="form-control input-lg" id="backpack" placeholder="none" readonly>
<div class="input-group-btn">
<button class="btn btn-default btn-lg" type="button" id="useItem" onclick="useItem(document.getElementById('backpack').value)">Use</button>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment