I tried your suggestion but still getting everything. I have modified the code so I can see the Ids.
what I want is, when WD/TO is selected, the corresponding item in "Select A CDRL Number" should be the only item in the select a cdrl number drop down. All items are showing up now in that drop down so just clearing that field is not working for me. Below is my modified code