By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,208 Members | 1,456 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,208 IT Pros & Developers. It's quick & easy.

How to hide a icon using JavaScript?

P: 1
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, 124 views)
Jun 5 '14 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,639
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.