LearnIt Sample Javascript Code

 
 
 
<!DOCTYPE html> <html lang="en-US"> <head> <title>Learn It HTML Template</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> </head> <body> <p id="sample">JavaScript can change HTML content.</p> <button type="button" onclick="document.getElementById('sample').innerHTML = 'Hello LearnIt !'"> Click Me!</button> </body> </html>
Output