Skip to content

Instantly share code, notes, and snippets.

View AlexSkrivseth's full-sized avatar

Alex Skrivseth AlexSkrivseth

View GitHub Profile
@AlexSkrivseth
AlexSkrivseth / generic_file.html
Created March 21, 2020 19:28
javascript to disable button on click
<a href="#"><button id="btn1" class="btn btn-warning" onclick="disableButton(this)">Refresh</button></a>
<div>
Content
</div>
<script type="text/javascript">
function disableButton(btn){
document.getElementById(btn.id).disabled = true;
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help