Can't get my field to show or hide based on user input.

Can't get my field to show or hide based on user input.

Hi. I have a field called 'In Foreclosure?'

When a user selects 'Yes' from the dropdown menu, I'd like the 'Docket No.' field to show.  If any other selection is chosen ('No' or 'Unknown' are the remaining choices), then I'd like to hide the 'Docket No.' field. Even after it shows as a result of me selecting 'Yes' (let's say I change my mind).

I'm hiding the 'Docket No.' field when the form loads. But I can't seem to get the remaining script to work under 'In Foreclosure'. Here's what I have:

if (input.In_Foreclosure_  ==  "yes")
{
    show Docket_No_;
}
if (input.In_Foreclosure_  ==  "no")
{
    hide Docket_No_;

Needless to say this isn't working. Please help.