How to set default country us in WordPress


1. Go to form directory and add this code.
For php -echo '<option value="'.$country->code.'" '.( $country->code == 'US' ? 'selected="selected"' : '').'>'.$country->name.'</option>';

For jquery- <script>jQuery('#country').val('US');
 </script>

Comments