Dzyuv001
Dzyuv001

Reputation: 328

Displaying a div using JavaScript

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?

Upvotes: 1

Views: 57

Answers (1)

Zakaria Acharki
Zakaria Acharki

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

Related Questions