Created
December 3, 2012 17:07
-
-
Save buoyant/4196392 to your computer and use it in GitHub Desktop.
exists in public/javascripts folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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