How to set default country us in WordPress on December 20, 2018 Get link Facebook X Pinterest Email Other Apps 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
Comments
Post a Comment