Adding multiple data with jQuery ajax
<p>I can process my form values by targeting the form class <code>&lt;form class="my_form_class"&gt;</code>:</p>

<pre><code>jQuery.ajax({
        type:"GET",
        url: "/wp-admin/admin-ajax.php",
        data: my_form_class,
        context: this,
        success:function(data){

            // do stuff
        }
});
</code></pre>

<p>This works great.</p>

<p>But I want to add more data, so I tried:</p>

<pre><code>data: { my_form_class, security : 'foo' },
</code></pre>

<p>It did not work. What am I doing wrong here? I tried:</p>

<pre><code>data: { my_form_class : my_form_class, security : 'foo' },
</code></pre>

<p>And it obviously didn't work either.</p>