$(function(){ RemoveEmbargoedCountries(); })
function RemoveEmbargoedCountries() {
//country ddl ids
var countryInputIds =
[
'new_address1_country',
'new_address2_country',
'new_address3_country'
];
//embargoed country codes
var embargoedCountyCodes =
[
'103', //iran
'204', //syria
'185', //sudan
'52', //cuba
'174' //north korea
];
$.each(countryInputIds, function () {
$.each(embargoedCountryCodes, function(){
//remove embargoed country code options from country input
}
});
}
</script>
</head>
<body>
<select id="new_address1_country">
<option value="103">Iran</option>
<option value="204">Syria</option>
</select>
</body>
</html>