Skip to content

Instantly share code, notes, and snippets.

View rdavila's full-sized avatar

Rubén Dávila Santos rdavila

View GitHub Profile
@rdavila
rdavila / Fancy File Inputs.js
Created October 14, 2012 02:28 — forked from davist11/Fancy File Inputs.js
Fancy File Inputs
var SITE = SITE || {};
SITE.fileInputs = function() {
var $this = $(this),
$val = $this.val(),
valArray = $val.split('\\'),
newVal = valArray[valArray.length-1],
$button = $this.siblings('.button'),
$fakeFile = $this.siblings('.file-holder');
if(newVal !== '') {