jquery - Is it possible to reload external div from internal code?
<p>I have a code</p>

<pre><code>&lt;div id="content"&gt;&lt;/div&gt;
</code></pre>

<p>I load into this content my Ajax content using load().</p>

<p>Now is it possible that from press on a button that is in this external ajax code I would reaload the content ID? It doesn't work and I think that is because this ID is external to the ajax code, it is not inside it.</p>

<p>I want it you press a button in the ajax external page code that the inside of  would be reloaded again, because a press of a button should reload everything inside id=content.</p>

<p>Is that possible somehow?</p>

<p>Edit: my code on page1 that has id=content:</p>

<pre><code>$(document).ready(function() {

$('.edit').bind('click', function(event) {
    event.preventDefault();
    link=$(this).attr("href");
    $('#content').load(link);

});
</code></pre>

<p>On the ajax side that is loaded with this jquery code (let's say page2 that is loaded inside page1) I was using the same function. The preventDefault is executed but of course the #content is not changed as it is not part of the page2 but part of page1.</p>

<p>UPDATE: Thank you all, live was needed instead of bind. I didn't know the ajax part of the page can see "outside" of it's own code. So in fact it has access to the whole page, the html and the ajax HTML inside the div.</p>
