A ninja would’ve done it with less code…
but I’m still pretty pleased with my little “other” revealer here:
function changeOption(object) {
var obj_id = jQuery(object).attr('id');
var obj_val = jQuery(object).val();
jQuery(object).children('option').each(function() {
var this_val = jQuery(this).val();
var field = jQuery('#' + obj_id + '-' + this_val);
if( this_val == obj_val) {
jQuery(field).parent().show();
} else {
jQuery(field).parent().hide();
}
});
}