开发者

how do I disable options based on the previous selection?

开发者 https://www.devze.com 2022-12-25 22:44 出处:网络
I have three drop-down menus for each sample shirt; product, col开发者_Python百科our and grade.Not all products are available in all colours and/or grades.I would like to disable the options that are

I have three drop-down menus for each sample shirt; product, col开发者_Python百科our 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.


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> .

0

精彩评论

暂无评论...
验证码 换一张
取 消