Guest User

Untitled

a guest
Feb 19th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <html>
  2. <!-- My simple example source for jQuery -->
  3. <head><title>test Js</title></head>
  4. <script type="text/javascript" src="jquery.js"></script>
  5. <script type="text/javascript">
  6. $(document).ready(function() {
  7. log("loaded");
  8. $("#run").click(function() {
  9. log("clicked");
  10. });
  11. });
  12.  
  13. function log(msg) {
  14. $("#console").prepend('<div>' + msg + '</div>');
  15. }
  16. </script>
  17. <body>
  18. <h1>test Js - GET method in jQuery</h1>
  19. <button id="run">RUN</button>
  20. <div id="console"></div>
  21. </body>
  22. </html>
Add Comment
Please, Sign In to add comment