I have two drop down menus.
Assuming your dropdowns are dynamically built, I'd have your server generate a little javascript for you - the PHP code can map them, so the output looks something like:
var _languageMap = {
{ 1: 12 },
{ 2: 11 },
...
{ 8: 14 }
};
Then set an eventhandler on change of your first dropdown, and set the second by looking up the value from your language map. If you're using jQuery, try something like:
jQuery("#asset_id").change(function() {
var trailerId = jQuery(this).val();
var languageId = _languageMap[trailerId];
jQuery("#country_id").val(languageId);
});
If you're not using jQuery, you can do the same with regular javascript - you'll just need to look up event handlers for dropdown lists - I just don't remember how to do that the old-fashioned way.