jquery - Load a partial page with class identifier -
i want load content page hosted on site.
the problem target page doesn't has id, class name.
so built sample proxy in php html content using get_file_contents
.
but next?
example:
<body> <span class="news">news today</span> </body>
i want content inside .news
if did you, you're trying print out/load part of returned string, in case .news. try following in php
<?php echo file_get_contents("http://your.news/news.php"); ?>
and in jquery
$("#test").load('get.php .news');
try working demo
Comments
Post a Comment