I have a form and have several text box, and a dropdown list. I am using the following jquery code to get the values of my form
// JQuery Code
parentFormName = $(this).parents('form').attr('name');
xajax_addNewRecord( xajax.getFormValues(parentFormName) );
My php code looks something like this:
protected function addNewRecord($formValues){
$newRecordFirstName = $formValues["newRecordName"];
$newRecordLastName = $formValues["newRecordLastName"];
$newRecordSelection = $formValues["dropDownSelection"]; // there is no info
/**
* some code goes here
* ...
*/
return $something;
}
These code works really well, except the getFormValues does not have the information for the dropdown list in my form.
How can I get this value?
Thank you
NOTE: I'm using xDebug and the $formValues parameter does not even contains a "dropDownSelection" field in the array...