Tiggles ツ
3/2/2018 - 3:58 PM

Form Placeholders

This will grab the value of the form fields, and make it into the placeholder for said input box.

$(document).ready(function() {

/* ==========================================================================
Forms
========================================================================== */

// placeholders
$('.formmodule input[type="text"], .formmodule textarea').each(function() { 
    var $this = $(this); 
    $this.attr("placeholder", $this.attr("value")).removeAttr("value"); 
});

}); //end doc ready