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

Hide "Publish" control in the "Workflows" group in "Document" tab in Document Library using Jquery

$
0
0

Hi,

I would like to hide "Publish" control in the "Workflows" section in the "Document" tab in the SharePoint Document Library using jQuery OR the entire "Workflow" section..

I would like to hide it either after the page loads or when users select any document and the "Document" tab loads.

I am using following jQuery code, however it is not working

  

<script src="/Sites/Bits/layouts/Bekaert.SPS.Intranet.Solution/MasterPage/Scripts/jquery-1.4.4.min.js">

</script>

<script type="text/javascript" id="ms-addnew_js">

$(document).ready(function () {

$(":checkbox").click(function(){         

            $("#Ribbon.Documents.Workflow").hide();    

  }); 

});</script> 

I guess problem with above code seems that the control is not yet loaded when a document is selected using check box.

Any suggestion on this would be highly appreciated.

Regards,

SPGeek03



Viewing all articles
Browse latest Browse all 11571

Trending Articles



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