Answers for "how does getjson work?"

0

how does getjson work?

$.ajax({
  dataType: "json",
  url: url,
  data: data,
  success: success
});
Posted by: Guest on May-12-2021
0

how does getjson work?

{
  "one": "Singular sensation",
  "two": "Beady little eyes",
  "three": "Little birds pitch by my doorstep"
}
Posted by: Guest on May-12-2021
-1

how does getjson work?

$.getJSON( "ajax/test.json", function( data ) {
  var items = [];
  $.each( data, function( key, val ) {
    items.push( "<li id='" + key + "'>" + val + "</li>" );
  });
 
  $( "<ul/>", {
    "class": "my-new-list",
    html: items.join( "" )
  }).appendTo( "body" );
});
Posted by: Guest on May-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language