javascript - get value customize of output json_encode() by jQuery.? -


I insert the data into the database with json_encode () , just get the value Name_units in line in the units database?

This code is the output database in php (by 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 * ///////////////////     

Try it out:

  $ 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' );}};});   

Also, this is a good idea to use for this scenario

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -