jquery - Append .php json to javascript -


i have json result site 'www.example.com/jsonresult.php'

{     1:  {       item_id: "balls",       item2: "2",       item3: "3",       item4: "4"    } } 

how append in jquery mobile javascript at

$.ajax({                     url: forecasturl,                     jsoncallback: 'jsoncallback',                     contenttype: "application/json",                     datatype: 'jsonp',                     success: function(json) {                         console.log(json);                                                 $("#current_temp").html('here');                         $("#current_summ").html('and here');                          },                     error: function(e) {                         console.log(e.message);                     }                 });` 

please help, thanks.

this how did it:

$("#ul").html(myvar['1'].item_id); 

have @ this jsfiddle here


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -