Is there a way to apply CSS classes conditionally….based not on browser but on whether a certain radio button was selected elsewhere on the page?
For example, let’s say I’m constructing a registration form and part of that form requires the user to select which address – home or business – they’d like to be their preferred address for correspondence. And, based on their selection, either the address fields in the Home section or the address fields in the Business section would become “required” (bolded and asterisked)…while the others would remain optional.
Is there a way to do this using only CSS?