Month: July 2013

A custom jQuery method to AJAXify forms with .AJAXify()

// Function to AJAXify forms $.fn.AJAXify = function(resultscontainer){ // Check if the element is on the page first if(this.length){ // Keep track of original element var og = this; // Unbind submit event this.submit(function(e){ // Initialize e.preventDefault(); var postobj = {}; // Loop through each child element and add to post object og.find(‘input, textarea, select, […]