Made it so that search input elements are now serialized. Fixes bug #4107.

This commit is contained in:
John Resig 2009-02-18 19:43:14 +00:00
parent 75a973da35
commit ca79d866fe
4 changed files with 9 additions and 8 deletions

View file

@ -71,7 +71,7 @@ jQuery.fn.extend({
.filter(function(){
return this.name && !this.disabled &&
(this.checked || /select|textarea/i.test(this.nodeName) ||
/text|hidden|password/i.test(this.type));
/text|hidden|password|search/i.test(this.type));
})
.map(function(i, elem){
var val = jQuery(this).val();