Hide items in Toolbar(dispfrm.aspx)

Hi Guys,
Sometime you want to hide some items in Toolbar of Dispfrm.aspx and that is where Jquery comes in
I assume you guys know how to use jquery in sharepoint.

<script src=”/JSLibrary/jquery-1.3.2.min.js” type=”text/javascript”></script>

<script type=”text/javascript” >

$(document).ready(function() { $(“td.ms-titlearea”).hide(); //Comment if you dont want to hide Breadcum $(“a[title=’Manage Copies’]”).parent().parent().parent().hide(); $(“td.ms-separator:nth-child(6)”).hide(); $(“td.ms-titlearea”).hide(); $(“a[title=’Workflows’]”).parent().parent().parent().hide(); $(“td.ms-separator:nth-child(10)”).hide();
$(document).ready(function() {$(“td.ms-titlearea”).hide(); //Comment this one if you dont want to hide breadcum$(“a[title=’Manage Copies’]”).parent().parent().parent().hide();$(“td.ms-separator:nth-child(6)”).hide();$(“td.ms-titlearea”).hide();$(“a[title=’Workflows’]”).parent().parent().parent().hide();$(“td.ms-separator:nth-child(10)”).hide();});

Note : You need to modify Script as per page DOM,Browse dispfrm.aspx page in Browser right click and View source



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s