Skip to content

ssowjanya/boilerplate_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

boilerplate_example

$(function() {

var entries = [];
var url = "http://jsonplaceholder.typicode.com/users?callback=?";

$.getJSON(url, function (data) {
    $.each(data, function (i, f) {
        var tblRow = "<tr>" + "<td>" + f.id + "</td>" + "<td>" + f.name + "</td>" + "<td>"+f.username+ "</td>" + "<td> " + f.email + "</td>"  + "<td> " + f.address.street + "</td>" + "<td> " + f.address.city + "</td>"  + "<td> " + f.address.zipcode + "</td>" +"<td> " + f.address.geo.lat + "</td>" + "</tr>"
        $(tblRow).appendTo("#entrydata tbody");
    });

});

});

        <th>ID</th>
        <th>Name</th>
        <th>UserName</th>
        <th>Email</th>
        <th>Street</th>
        <th>City</th>
        <th>Zipcode</th>
        <th>latitude</th>
        </thead>
        <tbody>

        </tbody>
    </table>

</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <script src="js/data.js"></script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published