I am using jQuery
. My main page is index.php
. How can I load the second page internally on the load of this page Where is a small block in the page?
You can use the load command for a simple page like this:
< Pre> & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Exam & lt; / Title & lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "content" & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;
You can fill it like id = content:
$ ('# content'). Load ('your url.php');
Edit: The change in load () from
get command will be syntax:
$ (' YourUrl.php ', function (data) {$ (' # content ') .html (data);});
Comments
Post a Comment