Home / Archive / MemberPress: Change default values for state and country fields on registration forms
Duplicate Snippet

Embed Snippet on Your Site

MemberPress: Change default values for state and country fields on registration forms

Change the default values for the state and country fields on registration forms.

Code Preview
js
(function($) {
 $(document).ready(function() {
	// Set defaults US, TX	  
	$('#mepr_signup_form #mepr-address-country').val('US').change();
	$('#mepr_signup_form #mepr-address-state').val('TX').change();
  });
})(jQuery);

Comments

Add a Comment