About using dropdown-input

hello friends,
im building a form, and I want to use dropdown with 2 options, like ‘yes’ or ‘no’,
so when the user choose ‘yes’, an hidden question collapsing,
I know how to do this with checkbox:
“if… else…”
but I dont know which code to use with dropdown

can you help me?
thank you

dropdown

Hello,
It’s actually the same as checkbox, but you have to check the value of that dropdown with :

if ( $w("#dropdown").value === 'yes') {
//do this
} else {
//do this
}

Best,

Mustafa