: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
/*! jquery-serializeForm - v1.2.1 - 2013-11-06
* http://danheberden.com/
* Copyright (c) 2013 Dan Heberden
$.fn.serializeForm = function() {
// don't do anything if we didn't get any elements.
var lookup = data; // current reference of data.
var selector = ':input[type!="checkbox"][type!="radio"], input:checked';
// Ignore disabled elements.
// data[a][b] becomes [ data, a, b ].
var named = this.name.replace( /\[([^\]]+)?\]/g, ',$1' ).split( ',' );
var cap = named.length - 1;
// Ensure that only elements with valid `name` properties will be serialized.
for ( var i = 0; i < cap; i++ ) {
// move down the tree - create objects or array if necessary.
lookup = lookup[named[i]] = lookup[named[i]] ||
((named[i + 1] === '' || named[i + 1] === '0') ? [] : {});
// at the end, push or assign the value.
if ( lookup.length !== undefined ) {
lookup.push( $el.val() );
lookup[named[cap]] = $el.val();
// assign the reference back to root.
// first, check for elements passed into this function.
this.filter( selector ).each( parse );
// then parse possible child elements.
this.find( selector ).each( parse );