[jQuery] serialize field type button

[jQuery] serialize field type button


I have the line below in my system and works fine with jquery 1.1.4
but when I update to jquery 1.2.x I can't serialize the field type
button.
hash =
jQuery("input[@type=text],input[@type=hidden],input[@type=password],input[@type=submit],input[@type=button],input[@type=radio]
[@checked],input[@type=checkbox][@checked],textarea,select", $
("#myform")).serialize();
alert(hash);
For example:
<form id="myform">
<input type="text" name="name">
<input type="button" name="btnSubmit" value="Search">
</form>
Result on jquery 1.1.4
name=weksley&btnSubmit=Search
Result on jquery 1.2.x
name=weksley
I tried to use the form plugin, but it have the same problem.
I would like to use a new jquery version, but I need to serialize the
fields type button.
Apologize for my english.
Thanks.