Is it possible to hide/disable a select option value based on another select option value?

By: Aaron Taylor | Asked: 03/17/2023
ForumsCategory: How-toIs it possible to hide/disable a select option value based on another select option value?
Aaron Taylor asked 2 years ago

Is there a way to hide or disable a particular option value in a select field when a user selects an option in another select field?

For example:

Select field A
Mercury
Venus
Earth
Mars
Jupiter

Select field B
Yes
No
Maybe

If a user selects either Mars or Jupiter, then Maybe is hidden or disabled (greyed out) for selection.

Thanks

1 Answers
Rob LeVineRob LeVine answered 2 years ago
I can't think of a native FF way of doing it. A few lines of jQuery code will handle it if you're good with that.
Aaron Taylor replied 2 years ago

Unfortunately, no, I'm not. Would you be able to help? If so, let me know a cost.

Thanks

Rob LeVineRob LeVine replied 2 years ago

Send me an email at [email protected]

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right