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?