• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

NoJS fallback methods

tyteen4a03

Well-known member
#1
How do you implement fallbacks when JavaScript is not available? I have an <input> that needs to be made visible when JavaScript is unavailable.
 

Chris D

XenForo developer
Staff member
#2
Either...

Make it hidden with JS, so ordinarily it is visible but the JS hides it, or use the .NoJs selector to make it hidden. .NoJs is added to the HTML tag when JS is disabled.