- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html">
- <title>jQuery to demonstrate Basic Selectors</title>
- <script src1="jquery.js"></script>
- <script language="JavaScript">
- $(document).ready(function () {
- $("div").html("Text to insert to the div");
- });
- </script>
- </head>
- <body>
- <form>
- <div>Div1</div>
- <div>Div2</div>
- </form>
- </body>
- </html>
- //该片段来自于http://www.codesnippet.cn/detail/261220138249.html
来源: http://www.codesnippet.cn/detail/261220138249.html