Advertisement
sharulhafiz

UTM News Ajax JQuery

May 8th, 2019
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.getJSON( "https://news.utm.my/news.json", null, function(data) {
  2.     $.each(data, function(index, value) {
  3.       $('#rss_news').append('<p class="title"><strong><a href="'+value["url"]+'">'+value["title"]+'</a></strong><br><small><em>Posted on '+value["date"]+'</em></small></p>');
  4.     });
  5.  
  6.   });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement