Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How do i go about hiding the "Upload Multiple Files... " option in document library using jquery?..i do not have access to the sharepoint designer so only with content editor webpart i have to do it..anu suggestions

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You could try this, assuming the link element has the value UploadMultipleLink in its ID:

$(function() {
  $("[id$='UploadMultipleLink']").css('display', 'none');
});
share|improve this answer
    
Hi Farrell, thanks for the reply - but i have noticed in the page source the id of the link is id="ctl00_PlaceHolderMain_ctl01_ctl05_UploadMultipleLink" i dont want to use this since i have heard it is kind of dynamic..is there a work around for this? –  spStacker May 8 '12 at 14:34
1  
The jQuery selector I used in the example is an "Select ID which ends with". So it selects all the **********UploadMultipleLink elements. In other words, it doesnt matter what is generated before UploadMultipleLink. It also passes on whateversharepointgeneratesUploadMultipleLink. –  Farrell May 8 '12 at 14:39
    
Ok Thanks!, i will try it out –  spStacker May 8 '12 at 14:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.