storages = $('select[name^="test_"]'); jQuery.each(storages, function() { val = $("option:selected", this).val(); });