Hi people:

The Selector work fine in the page however when a load data from HTML
archive the Selector don't apply for this.

TIA,
JETM

The Code:

In tag head:

$(document).ready(function() {

       // Change attr to _blank for open in new Windows
        $("[EMAIL PROTECTED]'http']").attr('target','_blank');

        $("#action").click(function() {
               $.ajax({
                        url: "update.html",
                        success: function(data) {
                                $("#text").html(data);
                         },
                        error: function(rhx, err, e) {
                              $("#text").html(rhx.responseText);
                        }
                }); //END .ajax
        }); //END click

}); //END Ready

In tag body:

<a href="http://www.google.com";>CLICK HERE!!!</a>
<p id="action">Load Data</p>
<p id="text"></p>

In update.html:
<a href="http://www.yahoo.com"; >Open in New Windows</a>

Reply via email to