Skip to content

Instantly share code, notes, and snippets.

@buoyant
Created December 3, 2012 17:07
Show Gist options
  • Save buoyant/4196392 to your computer and use it in GitHub Desktop.
Save buoyant/4196392 to your computer and use it in GitHub Desktop.
exists in public/javascripts folder
jQuery(document).ready(function() {
jQuery('#regform_state_id').change(function() {
var data=$('#regform_state_id').val();
$.ajax({
type: "POST",
url: "http://"+location.host+"dynamic_districts/"+data,
data: data,
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment