Take the 2-minute tour ×  Hi I'm trying to submit a form using
ajax inside Validate's submitHandler, also using the Chosen
library which beautifies multiple selects. The following works:
submitHandler: function(form) {     var     form =
$(this.currentForm);      var     data = {         first_name
: form.find('#first_name').attr('value'),         last_name
: form.find('#last_name').attr('value'),         chosen_people :
form.find('#chosen_people').val(),          type : "POST",
url : "formhandler.php",         data : data,         success :
function(response) {  Server response:      ['first_name'] =>
'John'     ['last_name'] => 'Smith'     ['chosen_people'] =>
array(         [0] => 37         [1] => 42  The problem is that
my form is large and changes often and I don't want to have to
keep enumerating all of the input and select elements. I want to
just say something like:  var     inputs =
form.find('input').serializeArray(); var     selects =
form.find('.chzn-select').val(); var     data =