I can process my form values by targeting the form class <form class="my_form_class">
:
jQuery.ajax({
type:"GET",
url: "/wp-admin/admin-ajax.php",
data: my_form_class,
context: this,
success:function(data){
// do stuff
}
});
This works great.
But I want to add more data, so I tried:
data: { my_form_class, security : 'foo' },
It did not work. What am I doing wrong here? I tried:
data: { my_form_class : my_form_class, security : 'foo' },
And it obviously didn't work either.