/*! * jQuery serializeObject - v0.2-wp - 1/20/2010 * http://benalman.com/projects/jquery-misc-plugins/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ // Whereas .serializeArray() serializes a form into an array, .serializeObject() // serializes a form into an (arguably more useful) object. (function($,undefined){ '$:nomunge'; // Used by YUI compressor. $.fn.serializeObject = function(){ var obj = {}; $.each( this.serializeArray(), function(i,o){ var n = o.name, v = o.value; obj[n] = obj[n] === undefined ? v : Array.isArray( obj[n] ) ? obj[n].concat( v ) : [ obj[n], v ]; }); return obj; }; })(jQuery);
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ui | Folder | 0555 |
|
|
jquery-migrate.js | File | 31.23 KB | 0644 |
|
jquery-migrate.min.js | File | 13.26 KB | 0644 |
|
jquery.color.min.js | File | 6.88 KB | 0644 |
|
jquery.form.js | File | 40.93 KB | 0644 |
|
jquery.form.min.js | File | 15.6 KB | 0644 |
|
jquery.hotkeys.js | File | 5.49 KB | 0644 |
|
jquery.hotkeys.min.js | File | 1.75 KB | 0644 |
|
jquery.js | File | 278.65 KB | 0644 |
|
jquery.masonry.min.js | File | 1.78 KB | 0644 |
|
jquery.min.js | File | 85.5 KB | 0644 |
|
jquery.query.js | File | 3.61 KB | 0644 |
|
jquery.schedule.js | File | 3.38 KB | 0644 |
|
jquery.serialize-object.js | File | 769 B | 0644 |
|
jquery.table-hotkeys.js | File | 3.66 KB | 0644 |
|
jquery.table-hotkeys.min.js | File | 2.24 KB | 0644 |
|
jquery.ui.touch-punch.js | File | 1.15 KB | 0644 |
|
suggest.js | File | 6.83 KB | 0644 |
|
suggest.min.js | File | 2.92 KB | 0644 |
|