Advertisement
Guest User

JD HTML

a guest
Sep 20th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4.  
  5. <title>How to Parse a JSON file using jQuery</title>
  6.  
  7. <style>
  8. body{
  9. text-align: center;
  10. font-family: arial;
  11. }
  12.  
  13. .button{
  14. margin:20px;
  15. font-size:16px;
  16. font-weight: bold;
  17. padding:5px 10px;
  18. }
  19. </style>
  20.  
  21. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  22. <script type="text/javascript" src="jd.js"></script>
  23.  
  24. </head>
  25. <body>
  26. <input type="button" value="Get and parse JSON" class="button" />
  27. <br />
  28. <span id="results"></span>
  29.  
  30.  
  31. <script>
  32. //When DOM loaded we attach click event to button
  33. $(document).ready(function() {
  34. //after button is clicked we download the data
  35. $('.button').click(function(){
  36. jd(12986728,77596666,12985270,87590127, 'atm', 5);
  37. });
  38. });
  39. </script>
  40.  
  41. </body>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement