[jQuery] Form serialize
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; }); }//if ( arr ) { } } catch (e) { alert(e.message); } finally { } return obj; }; $("#WRITE_FORM").serializeObject(); var formParameter = $("#from").serial..
Front/jQuery
2017. 8. 3. 15:56