469,307 Members | 2,211 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,307 developers. It's quick & easy.

How to hide a icon using JavaScript?

Have a icon (gray circle with x on it) on a page that needs to be hidden so Instructors cannot delete a course section from our learning management system. I've attached a screenshot of the element but I don't know how to code this in our JavaScript file to hide it when the page is rendered.
Attached Images
File Type: jpg Picture1.jpg (49.9 KB, 153 views)
Jun 5 '14 #1
1 1359
8,651 Expert Mod 8TB
there are three possible ways:
- delete the Element
- hide the Element (via display: none)
- remove the Element’s event listener
Jun 6 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by Grant Edwards | last post: by
3 posts views Thread by hagarwal | last post: by
1 post views Thread by c.verma | last post: by
4 posts views Thread by Goofy | last post: by
20 posts views Thread by Ansuiya | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.