I have this JQuery Ajax Form.
$(\'#modal-body-sign-in\').on(\'submit\', \'#sign-in\', function(e) {
e.preventDefault();
var data = $(this).se
I've got exactly the same problem since I've upgraded to jQuery 1.9.x. actually the simple $(data) generates the crash, nothing else. I had this problem a few times before (without previous versions than 1.9), but I don't remember its issue...
anyway it is a totally blocking trouble... still looking for a reason for that and a fix.
EDIT:
If I'm doing that :
$.ajax('/',function(html){
html = $('').append(html);
$(html);
});
It works fine. If I do :
$.ajax('/',function(html){
$(html);
});
It gives me a (through the FF error console) :
Erreur : Error: Syntax error, unrecognized expression: (...)
jquery.min.js - line : 4
EDIT 2:
Ok found the solution... after a long search and tests :
http://stage.jquery.com/upgrade-guide/1.9/#jquery-htmlstring-versus-jquery-selectorstring
So I now do something like :
$.ajax('/',function(html){
$($.parseHTML(html));
});
Anyway jQuery is always confusing my first element with the one, but at least it works