I have done this exact same thing on a previous project, which I
believe was using version 1.1.2, and had no problems. On this current
project we are using version 1.1.3, and for the life of me I cannot
figure out why this is not working.
$(function() {
$(".btnSubmit").click(function() {
$.get(
"/email_subscribe.cmd",
{ emailAddress: $("#emailAddress").val() },
function(data) {
alert( $("#invalid_email_address",data).html() );
}
);
});
});
The application is an MVC framework built in Java. The command I
submit to does some processing and sends me back HTML with a DIV with
an ID of "invalid_email_address". I take the value in that DIV, and
then slap it into the page that made the request. I am getting the
data back successfully, and the DIV exists within that data. So if I
alert just data, I can see it. But if I try to query any element
within that string I got back, I get no response in Firefox, and IE
returns null. I have tried selecting all sorts of elements from the
data with no luck. This does not work using $.ajax() either.
Thanks for any help you can offer.
Brian