Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
jquery Change DIV Content on Button Click Example
Keywords : jQuery change div text on button click with examples, jQuery change text inside of div elements on button click with examples
Example
<html> <head> <title>jQuery Syntax Example</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("button").click(function(){ $("div").text("Welcome to Tutlane"); }) }); </script> </head> <body> <div>Test</div><br /> <button>click</button> </body> </html>
Click Here to See Result
Result
Previous