How to disable the dependent drop down after selecting the parent button value using javascript

how to disable the dependent drop down after selecting the parent button value using javascript