0

I have three drop-down menus for each sample shirt; product, colour and grade. Not all products are available in all colours and/or grades. I would like to disable the options that are not available based on the users selection.

I've tried using this answer here (using a radio select). Unfortunately, I can't get it to work with an option-selected input.

This is what I'm working on - quartus.ca/select-options.html

Any guidance would be appreciated.

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
3r1c
  • 23
  • 1
  • 5

1 Answers1

0

You need to dynamically clear and re-insert the OPTIONs on every change, based on your own business logic. You cannot simply disable arbitrary items in a <SELECT> .

Diodeus - James MacFarlane
  • 112,730
  • 33
  • 157
  • 176