jquery get elements by name jQuery('#myForm select[name=foo]').each(function () { jQuery(this).attr('name', 'bar') });