Skip to content

Instantly share code, notes, and snippets.

@grahampcharles
grahampcharles / jquery.validate.unobtrusive.dynamic.js
Last active December 26, 2015 00:39 — forked from joelpurra/jquery.validate.unobtrusive.dynamic.js
forked to add test that selector points to a form in the first place; if it's an [] then the function will throw an exception
/// <reference path="../jquery-1.7.js" />
/// <reference path="../jquery.validate.js" />
/// <reference path="../jquery.validate.unobtrusive.js" />
// Originally by XHalent, @xhalent
// http://xhalent.wordpress.com/
// http://xhalent.wordpress.com/2011/01/24/applying-unobtrusive-validation-to-dynamic-content/
// Modified by Joel Purra
// http://joelpurra.com/
@grahampcharles
grahampcharles / autosubmit.js
Created March 5, 2014 23:09
jquery function to automatically submit a form each time a control is changed
/*
Usage:
Add a class of "autosubmit" to controls. If the control is not within a form
(or even if it is but you want to use a different form), add data-autosubmit-form="#selector".
Then, on DOM ready, execute autosubmit() to wire up the handlers:
$(function () {
autosubmit();
});
@grahampcharles
grahampcharles / GoogleFonts.txt
Created May 6, 2021 17:35 — forked from karimnaaji/GoogleFonts.txt
Google fonts list (TTF)
{
"kind": "webfonts#webfontList",
"items": [
{
"kind": "webfonts#webfont",
"family": "ABeeZee",
"category": "sans-serif",
"variants": [
"regular",
"italic"