If I have a main page and a section of it generated by Ajax, how do I
access an element in the main page from the section generated by Ajax?

Or, in code speak: (how can I make something like this work)

<html>
    <img id="removeMeAfterAjax" src="images/fredington.jpg" />

    <div id="AjaxHolder">
        <!-- BEGIN retrieved via Ajax -->

        <a onClick="$('#removeMeAfterAjax').remove();">Remove
Fredington</a>

        <!-- END retrieved via Ajax -->
    </div>
</html>

Reply via email to