the filters for form throw an error

Description

While I excute the following expr for each() action, it will throw a error "filter is not a function in line 1938":
$(':input:not(:disabled):not([readonly]):not([type="hidden"]):not(:button):not(:reset):not(:submit)', elem).each(function(){});

It does goes wrong at each input element, but it only throw the error after the last one, otherelse, this expr is available in jquery 1.2;

Change History (4)

I am sorry, the essential problem is not this selector, that's the error from the checkbox, as follow:
<input type="checkbox" name="mycheck" value="1">

when execute the script:
elemname='mycheck';
re=$('input[name="'+elemname+'"]').is(":checked");

It will throw the error filter is not a function in line 1938;
this checkbox doesn't throw error while it execute lonely, but it will throw the error as put into a prototype of object, this error is cause by the "is()" method, if replace it with .attr('checked'), that's all right.