Simple implementation case of JS message function (recommended)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Unt titled document</title><script src="jquery-1.11.2.min.js"></script>//Add to the jquery package</head><body><div id="nr"></div><div> Content: <textarea id="txt"></textarea> <br /> <input type="button" value="submit" id="btn" /></div></body><script type="text/javascript">//Add click event $(document).ready(function(e) { //Search the button with ID=btn and add a click event $("#btn").click(function(){ //First find the value in the text field var nt = $("#txt").val();//Fetch out the value entered by the user in the text field and hand it over to a variable nt var str = nt+"<br>";//Add a new line after the content entered by the user//Top the spliced string (nt+"<br>") into the DIV with the top ID nr and go $("#nr").append(str); })});</script></html>The above is the simple implementation case (recommended) of the JS message function brought to you by the editor. I hope everyone will support Wulin.com more~