Menu
Hello,
I want to get the text inside the div tag on the page I am running with ajax
This is the div tag: `<div style=”display:none;”>{“a”:”11″,”b”:”22″,”c”:”33″}</div>
“`
$.ajax({
…
…
success: function(data){
var JSONString = “[” + data + “]”;
var JSONObject = JSON.parse(JSONString);
var result = “Option A ” + JSONObject[0][“a”] + “Option B ” + JSONObject[0][“b”] + “Option C ” + JSONObject[0][“c”];
}
I want to get json_array in div