div nested html without iframe_HTML/Xhtml_webpage production

WBOY
Release: 2016-05-16 16:38:14
Original
1473 people have browsed it

Recently, during my homework, I needed to nest pages without iframe, so I had to nest them in divs, using the jquery method.

Copy code
The code is as follows:



As long as the code is so much, #button is the id of a button, and content is You need to insert the html div

and you cannot directly use $("#button").click(function() {}; because this is before the page is loaded, so you will not find what you want after the page is loaded. div, you need to add $(document).ready(function() {};

Another key point is that many people forget to quote jquery, so you must add
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template