Question : JQuery form values

I have the attached files that retrieve form values into a div in FormInfo.html. Using JQuery I need to modify the files to do the following:
1.) Replace the onclick() event handler with an id selector to use with the jQuery .click() method.
2.) Collect form values using jQuery syntax
3.) Inject results into existing HTML element (<div>, <p>, <span>) via the DOM using jQuery empty() and append() methods
4.) Place script in an external .js file
Attachments:
 
main file to browse
 
 
form.js (723 bytes)  (File Type Details) 
Javascript file
 
 
CSS file
 

Answer : JQuery form values

flavors is an object not an array according to print_r, then in turn that is an array of objects (not an array of arrays)

I believe you you are looking for is:
1:
2:
3:
4:
foreach($RF_Result->flavors as $key => $flavor)
echo 'id:'.$flavor->id);
      print_r($flavor);
}
Random Solutions  
 
programming4us programming4us