I am trying to hide the Compliance Details of list item from ECB using Jquery. But unable to get the correct ID of the of the menu. Using the Jquery code I am able to hide other menus. Also is there code to hide by default in Jquery other than the 'mouseover'.
<script type="text/javascript">
$(document).ready(function(){
$('.ms-MenuUIPopupBody').live('mouseover', function() {
$('#ID_EditItem').parent().hide();
$('#ID_EditItem').remove();
$('#ID_DeleteItem').parent().hide();
$('#ID_DeleteItem').remove();
$('#ID_ViewItem').parent().hide();
$('#ID_ViewItem').remove();
$('#ID_Subscribe').parent().hide();
$('#ID_Subscribe').remove();
$('#ID_Workflows').parent().hide();
$('#ID_Workflows').remove();
$('#ID_MngPerms').parent().hide();
$('#ID_MngPerms').remove();
$('#ID_ComplianceDetails').parent().hide();
$('#ID_ComplianceDetails').remove();
});
});
</script>
The below lines does not work
$('#ID_ComplianceDetails').parent().hide();
$('#ID_ComplianceDetails').remove();
Thanks in advance.