ajax - Jquery Json extract node? -
How do I use Jquery to remove only 'customers_firstname' from the JSON format?
& lt ;? Php echo json_encode ($ user)? & Gt; {"Customer"}: "created": "", "created": " "", "Modified": "2013-03-14 11:50:18", "customer_firstname": "Gerald", "customer_lostname": "Russ"}}, {"customer": {"Id": "14", "customer_gener": "f", "resumest": blank, "created": "2013-01-29 15:41:23", "revised": "2013-02- 14 15:08:42 "," customer_firstname ":" gym "," customer_lostname ":" carry "}}]
Try this:
HTML
& lt; Ul id = "nameList" & gt; & Lt; / Ul & gt; JS Gender ":" M "," Result ":" A 15ff2aa27d616636b5bc30fac4dba38733f4e5f "," Created ":" 2013-01-29 13:49:06 "," Modified ":" 2013-03-14 11:50:18 ", "Customer_FirstName": "Gerald", "customers_lastname": "juice"}}, {"customer": {"id": "14", "customers_gender": "f", "resumetest": null, "created": "2013- 01-29 15:41:23", "Revised": "2013-02-14 15:08:42", "Customer_FirstName": "gym", "customer_lostname": "carry"}}}; $ .each (customer, function (index, item) {$ ("# name list"). App ("" + item.Customer.customers_firstname + " );});
Comments
Post a Comment