Skip to content

Instantly share code, notes, and snippets.

View wattry's full-sized avatar
🎯
Grateful

wattry wattry

🎯
Grateful
View GitHub Profile
@wattry
wattry / validateControl.js
Last active October 5, 2018 12:27
JS function to enable and disable inputs as the previous was filled
function validateRelationshipForm(inputs) {
for (i = 0; i < (inputs.length - 2); i+=2) {
if (inputs[i].value.length > 0) {
inputs[i + 1].disabled = false;
if (inputs[i + 1].type == "button") {
inputs[i + 1].classList = ("btn btn-success");
}
} else {
inputs[i + 1].disabled = true;
if (inputs[i + 1].type == "button") {
@wattry
wattry / Git manual
Last active January 30, 2018 13:57
Git manual
GIT(1) Git Manual GIT(1)
NAME
git - the stupid content tracker
SYNOPSIS
git [--version] [--help] [-C <path>] [-c <name>=<value>]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]