1function getForm(element) { 2 var $element = $(element); 3 return $element.is("[role='form']") ? $element[0] : $element.closest("[role='form']")[0]; 4} 5 6function $getForm(element) { 7 return $(getForm(element)); 8} 9 10function serializeForm(element) { 11 var obj = {}; 12 13 $getForm(element).find('[name]').each(function () { 14 if (this.name) { 15 obj[this.name] = $(this).val(); 16 } 17 }); 18 19 return obj; 20}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.