Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <table id="userTbl">
    <tr>
      <th>Username</th>
      <th>Event type</th>
    </tr>
  </table>
</body>
</html>
 
$(function(){
  
  var data ={
    users:[
        { "username":"Bob",  "datetime":"2015-10-26 01:59:11",  "eventType":"Enroll",  "URL":"http://gogle.com" },
        { "username":"Steve",  "datetime":"2015-10-26 01:49:40",  "eventType":"Enroll",  "URL":"http://bing.com" },
        { "username":"Joe",  "datetime":"2015-10-26 01:48:29",  "eventType":"Enroll",  "URL":"http://facebook.com" }
    ]
 };
  
  var trs="";
  $.each(data.users,function(i,item){    
  
    trs+="<tr><td>"+item.username+"</<td>";
    trs+="<td>"+item.eventType+"</<td></tr>";
    
  });
  $("#userTbl").append(trs);
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers