Created
          September 20, 2015 14:55 
        
      - 
      
- 
        Save honorlin/14e5495372f9a46dc08a to your computer and use it in GitHub Desktop. 
    khfa-1
  
        
  
    
      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
    
  
  
    
  | <!doctype html> | |
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"> | |
| </script> | |
| <script> | |
| $(document).ready(function(){ | |
| $(".btn0").click(function(){ | |
| if ($("#h3-0").html().indexOf("index") < 0) { | |
| $("#h3-0").html(function(m,n){ | |
| return "index" + m + ":" + n | |
| }) | |
| } | |
| })//end btn0 | |
| })//end ready | |
| </script> | |
| </head> | |
| <body> | |
| <h3 id = "h3-0">try me</h3> | |
| <button class = "btn0" type = "button">click to change text above</button> | |
| </body> | |
| </html> | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment