Remove or Hide SharePoint List Menu Options Using jQuery

The following jQuery based JavaScript function can be used to remove the “Edit in Datasheet” option from a SharePoint list. Add a Content Editor Web Part to the list’s standard view and include the following script in the source. The menu option is removed when the page is loaded. The function can be modified or expanded to remove any option using the menu option’s displayed text.

The jQuery library will need to be loaded in order for the function to work properly:

<script src=""></script>

The function to remove the “Edit in Datasheet” menu option:

<script language='javascript'>
$(document).ready(function() { 
   $("[text='Edit in Datasheet']").remove();

Leave a Comment