javascript - Is there a way to Show/Hide elements without CSS? -


i making 1 web ui 508 compliant , 1 requirement states "working web ui when css disabled". have several places show/hide elements using style=display:inline , style=display:none , calling them accordingly using js function calls. when disable css (using wat2.0), hidden elements being shown not make ui good. have these kind of things in several places collapsed/expanded descriptions, popups on mousemove etc.,

is there other way show/hide elements other using style tags? please advice!

this sounds cumbersome, could build simple library removes nodes dom , inject them when they're needed. still have object saves removed nodes variables, don't have recreate them when inserting.

i must say, though, when requirements specify site should work css disabled, means it's supposed function exactly same way in respects css disabled. if you've got expand-/collapsible list, instance, i'd assume acceptable compromise css disabled show content of items in list.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -