Easy to remove Search scopes from Out Of the Box Search Scope Drop down list using JQuery.
Use below JQuery for remove Scopes from Dropdown list.
$(document).ready(function(){
$(window).error(function(){
alert("Error");
});
$("select[id$='SBScopesDDL'] option:contains('Scope2')").remove();
$("select[id$='SBScopesDDL'] option:contains('This Site:')").remove();
});
Where do I copy this code to?
ReplyDeleteIs there a Javascript header I aadd to this code?
Could you please update this code, so users are able to copy and paste it into their master page or css file?
Thanks
Brad,
ReplyDeleteCopy this code in master page OR Page layouts etc.
where you want to remove the scope from drop down.
Also you have to register latest Jquery library.
Feel free to ask me..
Thanks,