Based on what posted here, I assumed the "not working" referring to when the Payment method changed to Online transfer... the Name of depositer textbox didn't get disabled?
Look like there is a typo in the script, it should be
disabled instead of disable
document.getElementById("bd").disabled='true';
Here is a working example based on what posted here:
CP_Dropdown_Change - JSFiddle[
^]