json - Javascript: each function value dynamic title -


i trying use following code:

var list_id = "cust"; var page_id = "subpagecust"; var show = "company"; $.ajax({                  url: "sap.php",     datatype: "json",     type: "post",     success: function(data) {                    var output = '';                    $('#' + list_id).empty();                     var value1 = "value." + show;                    $.each(data, function(index, value){                           output += '<li><a href="#' + value.show                          +'" data-transition="slide">' + value.show + '</a></li>';                     });       $('#' + list_id).append(output).listview('refresh'); 

the json title company:company. has idea how use value.title dynamically?

regards


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -