$("select") will include all relevant fields. To just get the dropdowns, use this:
$("select:not([size])")
To answer another question:
How do I go through a few divs? Can I do $('#mydivname').find('select').each(function(){ }); ??
$('#mydivname select:not[size]').each(...)
source share