Since there are innumerable ways that attributes could be "dependent", it is not possible to have generic code that will handle all or most situations. Any setup can be custom-coded with javascript to fit your particular case.