serializeObject (1) 썸네일형 리스트형 (jQuery) serializeObject jQuery.fn.serializeObject = function() { var obj = null; try { if (this[0].tagName && this[0].tagName.toUpperCase() == "FORM") { var arr = this.serializeArray(); if (arr) { obj = {}; jQuery.each(arr, function() { obj[this.name] = this.value; }); } } } catch (e) { alert(e.message); } return obj; }; 이전 1 다음