Load first div from another page using jquery or php
<p>I am not ever sure this is possible but I know you guys will know the answer. </p>

<p>I wonder if it is possible to load the first div on a page into a different page. </p>

<p>Example:</p>

<p>This code is on "list.php"</p>

<pre><code>&lt;div class="message_details"&gt;
Some Content 1
&lt;/div&gt;
&lt;div class="message_details"&gt;
Some Content 2
&lt;/div&gt;
</code></pre>

<p>I found this article and it works but it brings in all div's but I want to load only the first div.</p>

<p><a href="http://stackoverflow.com/questions/4560183/load-content-from-external-page-into-another-page-using-ajax-jquery">Load content from external page into another page using Ajax/jQuery</a></p>

<p>Here is the code I have now that loads all divs</p>

<pre><code>$(document).ready(function() {
    $(".loader").load('list.php .message_details');
});
</code></pre>

<p>How can I load only the first div? Also is there any way to remove an img tag within the selected div?</p>

<p>Thanks everyone</p>
