tags:

views:

54

answers:

1

Hi there can I get code to get a list dropdown of elements in a form by name and also rename them at the same time thanks

+2  A: 
jQuery('#myForm select[name=foo]').each(function () { 
    jQuery(this).attr('name', 'bar') 
});
David Dorward
Thanks that works perfectly
mike