I have inherited this code that populates the countries in my online checkout. The first value that shows up is Australia but I need it to be set to USA.
<script type=“text/javascript”>
$(function(){
$('#FormField_11>option, #FormField_21>option').each(function () {
// PUT THE COUNTRIES YOU WANT TO KEEP IN THE LIST HERE
var countries = [ 'United States', 'Canada', 'Belgium', 'Australia', 'Denmark', 'Finland', 'Germany', 'Ireland', 'Italy', 'Japan', 'Netherlands', 'Netherlands Antilles', 'New Zealand', 'Norway', 'Sweden', 'United Kingdom', 'Austria' ];
var country = $(this).text();
if (countries.indexOf(country) == -1) {
$(this).remove();
}
});
});
</script>
Can anyone help me define United States as the default?
Thanks in advance
United Statesselected by default, or if you want it moved to the top of theselect?