I'm trying to load a div into a page based on a change in the drop down. I either want to show a div which has state/zip or province/postal_code, (each is a file) but I am getting a "406 Not Acceptable [http://localhost/profiles/residency]"
Here is my JQuery code:
$(function(){
$("#profile_country").change(onSelectChange);
});
function onSelectChange() {
var selected = $("#profile_country option:selected");
var selectedText = selected.text();
if (selectedText == 'United States') {
$("#residency").load("/profiles/residency");
}
else {
$("#residency").load("/profiles/residency");
}
}
Now I am at loss, what should be in my "residency method"? what to put in my routes file?