How to hide a icon using JavaScript?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ksklein
    New Member
    • Jun 2014
    • 1

    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 Files
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    there are three possible ways:
    - delete the Element
    - hide the Element (via display: none)
    - remove the Element’s event listener

    Comment

    Working...