Reputation: 328
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 runningBy 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?
Upvotes: 1
Views: 57
Reputation: 67525
I'm not sure but try "display"
attribute with lowercase instead of "Display"
, and remove space after DisableJS
in $(".DisableJS ")
:
$(".DisableJS").css("display", "inline");
Upvotes: 1