Sublime Text
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> <style type="text/css"> .info{ border:1px solid black; background-color:yellow; height:300px; margin:20px; padding:10px; } </style> </head> <body> <button type="button">Click here</button> <div class="info"> <h3>- Tài liệu học Lập Trình Web</h3> <img src="../image/troll-face.png" height="200"> </div> <script> $(document).ready(function(){ $("button").click(function(){ $(".info").empty(); }); }); </script> </body> </html>
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> <style type="text/css"> .info{ border:1px solid black; background-color:yellow; height:300px; margin:20px; padding:10px; } </style> </head> <body> <button type="button">Click here</button> <div class="info"> <h3>- Tài liệu học Lập Trình Web</h3> <img src="../image/troll-face.png" height="200"> </div> <script> $(document).ready(function(){ $("button").click(function(){ $(".info").empty(); }); }); </script> </body> </html>