Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Hiding the Compliance Details in ECB. Need the ID.

$
0
0

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.

 

Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>