Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As you can see <a href="http://jsfiddle.net/TVexb/" rel="noreferrer">here</a>, <code>serializeObject</code> is not a native jQuery Method and thus only exist if you or a previous programmer of the site inserted it. As is mentioned in an <a href="https://stackoverflow.com/questions/8900587/jquery-serializeobject-is-not-a-function-only-in-firefox">Q&amp;A found here</a>, this function was probably found when someone working on your site "<code>searched a way to serialize a form</code>" and found the following extension:</p> <pre><code>$.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name]) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].push(this.value || ''); } else { o[this.name] = this.value || ''; } }); return o; }; </code></pre> <p>Look for <code>serializeObject</code> somewhere in your JS, but note, it's probably not needed as it <strike>appears to do the same thing as <code>$.fn.serialize</code></strike>.</p> <hr> <p>Upon further review, I found it's not the exact same. <code>serializeObject</code> method found at other Q&amp;A will serialize a form's value's as an Object, while <code>serialize</code> encodes the values as a string for submission.</p> <p>Please take note, <strong><em>if you want something</em></strong> like <code>serailizeObject</code> <strong><em>that is native to the jQuery Core</em></strong>, then please see <a href="http://api.jquery.com/serializeArray/" rel="noreferrer"><code>serializeArray</code></a>.</p> <p>The result will be slightly different in that <code>serializeArray</code> will make an array of objects of your form values. each Object having <code>{ name: "", value: "" }</code></p> <p><a href="http://jsfiddle.net/rFzyQ/" rel="noreferrer"><h1>EXAMPLE</h1></a> <sup>Please see <a href="https://developers.google.com/chrome-developer-tools/docs/console" rel="noreferrer"><code>Developer</code> </a><a href="https://developer.mozilla.org/en-US/docs/Tools/Web_Console" rel="noreferrer"><code>Tools</code> </a><a href="http://msdn.microsoft.com/en-us/library/ie/gg589530%28v=vs.85%29.aspx" rel="noreferrer"><code>Console</code></a> in example.</sup></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload