im developing app by using intel xdk and i want to show JSON data coming form web page in my page.here is my code..
function LoadJsonDataFunction()
{
$.getJSON("json_Data_webpage.php", function(obj) {
$.each(obj.employees, function(key, value){
$("allemployees").append("<li>"+value.fname+"</li>");
});
});
}
im calling above function in the body tag
<body onload="LoadJsonDataFunction()">
<ul id="allemployees"> </ul>
but this code is not working.
i have found jqm plugin for AppFramework.how can i use it to solve this.
$("allemployees")
should probably be $("#allemployees")
, so it selects the html-element with the id allemployes.