jQuery is not filtering/selecting on IE after ajax call

Posted by VinTem on Stack Overflow See other posts from Stack Overflow or by VinTem
Published on 2010-03-24T14:16:04Z Indexed on 2010/03/24 14:23 UTC
Read the original article Hit count: 249

Filed under:
|
|

I have the following code that works on firefox and chrome

$("#adicionarItem").click(function(){
    $.ajax({
        type: 'GET',
        url: $("#formAdicionaItem").attr("action"),
        data: $("#formAdicionaItem").serialize(),
        success: function(response){
            alert($("div#errors", response).size());
        }
    });
});

In IE the alert always returns zero. In firefox/chrome it returns 1 wich is the expected value. Does anyone know if this is a bug or if I am doing something wrong?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about internet-explorer