this the line indicated by firebug:
expr = expr.replace(/\\=\\s*([^'"\\]]*)\\s*\\]/g, "='$1']");
here is the code which causes the error, notice that this code have been working untill last friday, i didn't change jquery version, the code got broken with no apparent reason.
here i get two html select and their labels
var inStock = $('#selectedStore');
var stockLabel = $(inStock).prev("label");
var inProducer = $('#selectedProducer');
var producerLabel = $(inProducer).prev("label");
here i get the html div which contains the selects and labels
var div = $(inStock).parent('div');
// here i remove one of the two label/select pair because i need to palce it after the other
div.remove(inStock); this line gives error, but it didn't few days ago, it always worked
here i place the objects after the element i want
the code is not working also on chrome and ie.