Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] Hide element once option is selected in list Reply To: Hide element once option is selected in list

#150697
Paulie_D
Member

Isn’t ‘disabled’ an attribute and not a property?

I dunno…my JS fu (foo?) is bad.

Not sure if it will hide it or just ‘grey it out’ though.

Once it is has the disabled attribute/property, you could hide it with

option:disabled {
display:none;
}