Created
          January 28, 2015 01:50 
        
      - 
      
 - 
        
Save Andygmb/ae3a09d7475e46f00acc to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <html> | |
| <head> | |
| <script src="https://code.jquery.com/jquery-1.11.2.js"></script> | |
| </head> | |
| <body> | |
| <a href="/red/1"><button> Click me to turn red on</button></a> | |
| <a href="/red/0"><button> Click me to turn red off</button></a> | |
| <script> | |
| $("a").on("click", function(e){ | |
| e.preventDefault() | |
| url = "http://www.google.com/" | |
| $.ajax({ | |
| url:url | |
| }) | |
| }) | |
| </script> | |
| </body> | |
| </html> | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment