Skip to content

Instantly share code, notes, and snippets.

@reachkamrul
Created January 10, 2022 10:00
Show Gist options
  • Save reachkamrul/aaf145e0b5e62693f1eb274f675c9ec3 to your computer and use it in GitHub Desktop.
Save reachkamrul/aaf145e0b5e62693f1eb274f675c9ec3 to your computer and use it in GitHub Desktop.
$form.find('.address').on('change', function(){
var address = jQuery(this).val().split(',');
$form.find('input[name="government"]').val(address[0]);
$form.find('input[name="address"]').val(address[1]);
$form.find('input[name="postal"]').val(address[2]);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment