1

I am trying to make my Website more accessible to users that don't have javascript.

Content that will be visible if the user has JavaScript Enabled Content visible when Java Script is not running

By default DisableJS is set to Display:none;

I have an external javascript file with the following line

$(".DisableJS ").css("Display", "inline");

Is the javaScript code i'm using wrong ( is it all that I need to do this) , if so how can I fix this?

2
  • 1
    That should work fine. Note you can just do $(".DisableJS ").show(); Commented Nov 7, 2015 at 0:54
  • Have a look at <noscript> Commented Nov 7, 2015 at 1:57

1 Answer 1

1

I'm not sure but try "display" attribute with lowercase instead of "Display", and remove space after DisableJS in $(".DisableJS ") :

$(".DisableJS").css("display", "inline");
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.