Skip to content

Instantly share code, notes, and snippets.

View CiaranR's full-sized avatar

Ciaran Rooney CiaranR

View GitHub Profile
function toSubmit() { return !1 }
$('#sbmt-btn').click(function (e) {
e.preventDefault();
let valid = true;
if ($('#uni-last-name').val() == '' && $('#ln-error').val() == undefined) {
valid = false;
$("<p class='tml-error' id='ln-error'>Last Name field is required</p>").insertAfter("#uni-last-name");
}
if ($('#uni-first-name').val() == '' && $('#fn-error').val() == undefined) {
valid = false;

Keybase proof

I hereby claim:

  • I am CiaranR on github.
  • I am ciaranr (https://keybase.io/ciaranr) on keybase.
  • I have a public key whose fingerprint is 32E7 A021 4501 74CF FB5E 02FE 28EE A8FC 4039 F212

To claim this, I am signing this object:

@CiaranR
CiaranR / 0_reuse_code.js
Created August 26, 2016 08:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console