Hi,
I tried getting the ID of Delete Document Button on Ribbon and tried to Hide it. Unfortunately not able to hide it. Any Suggestions would be helpful.
Code that I have tried:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(document.getElementById('Ribbon.ListItem.Manage-LargeMedium-1-2')).addClass('ms-cui-row ms-cui-disabled');
}); </script>
also tried
<script type="text/javascript">$(document).ready(function(){
$('a[id*="Ribbon.ListItem.Manage.Delete-Medium"]').hide();
}); </script>