Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <title>How to Parse a JSON file using jQuery</title>
- <style>
- body{
- text-align: center;
- font-family: arial;
- }
- .button{
- margin:20px;
- font-size:16px;
- font-weight: bold;
- padding:5px 10px;
- }
- </style>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
- <script type="text/javascript" src="jd.js"></script>
- </head>
- <body>
- <input type="button" value="Get and parse JSON" class="button" />
- <br />
- <span id="results"></span>
- <script>
- //When DOM loaded we attach click event to button
- $(document).ready(function() {
- //after button is clicked we download the data
- $('.button').click(function(){
- jd(12986728,77596666,12985270,87590127, 'atm', 5);
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement