Community

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
VirineiaLupan
New Member

Hide Reset Course Content for Teachers

Is there a way to hide Reset Course Content for everyone but the Admins? 

I found this code but it doesn't work. 

$('aside#right-side a.reset_course_content_button').hide();document.querySelector('aside#right-side a.reset_course_content_button').style.display='none';document.querySelector('aside#right-side a.reset_course_content_button').remove();‍‍‍‍‍‍‍‍‍

 

0 Kudos
1 Reply
werner_huysman1
Community Member

Hi,

this should work:

document.querySelector('.reset_course_content_button').style.display = "none"