javascript - get value customize of output json_encode() by jQuery.? -
 I insert the data into the database with      This code is the output database in php (by     Try it out:    Also, this is a good idea to use for this scenario    json_encode () , just get the value  Name_units  in line in the  units  database?   json_encode () ):  my_table = & gt; = "Gtc: mediawidth =" gtc: mediawiki-xid = "33" gtc: suffix = "" & gt; "Checkbox_units": ["mini bar", "mobleman"]}, {"name_units": "Mokhles", "price_units": "4,851,269", "checkbox_units": ["mobleman", "TV"]}, {" Name_units ":" "" "" "" "", "check box_notes": ["minibar", "mobile", "tv"]}]}]]    
 var DataObj = $ (this) .closest ('form'). Serialize (); $ .Azax ({type: "post", datatype: 'jason', url: 'url', data: data obj, cache: fraud, success: function (data) {/////////// ///////// * HERE ///////////////////// $ .each (Data, Function (A, B) {// Alerts ( B ('& lt; p id = "' + b.units [name_units] + '" & gt;' + b.units [name_units] + '& lt; / p & gt;'). Apendeau ('.class ');}); ///////////////////// HERE * ///////////////////      
 $ Each (data, function (a, b) {$ .each (b.units, function (c, d) {$ ('& lt; p id = "' + d.name_units + '" & gt;' + D .name_units + '& lt; / p & gt;'). Attachments ('class' );}};});   
 
  
Comments
Post a Comment