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

NoJS fallback methods


Well-known member
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

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.