Problem posting to a nested resource URL via AJAX

I want to get an updated list of states depending on the country the
user selects. I'm using REST so I would like to post to countries/x/
states where x is the value of the select. I'm trying to use
observe_field but I'm getting nowhere with this. (http://

Any suggestions?