Skip to main content
Code formatting
Source Link
P S
  • 4.8k
  • 4
  • 28
  • 50

I was having same requirement. and this works for me.

$(document).ready(function() {

$(document).ready(function() {

     $("body #s4-topheader2. ul li ul li a").attr("href","javascript:void(0);");
});

});

May be it helps you.

Don't forget to include JQuery in your master page.

I was having same requirement. and this works for me.

$(document).ready(function() {

 $("body #s4-topheader2. ul li ul li a").attr("href","javascript:void(0);");

});

May be it helps you.

Don't forget to include JQuery in your master page.

I was having same requirement. and this works for me.

$(document).ready(function() {

     $("body #s4-topheader2. ul li ul li a").attr("href","javascript:void(0);");
});

May be it helps you.

Don't forget to include JQuery in your master page.

Source Link
J.Shah
  • 188
  • 8

I was having same requirement. and this works for me.

$(document).ready(function() {

 $("body #s4-topheader2. ul li ul li a").attr("href","javascript:void(0);");

});

May be it helps you.

Don't forget to include JQuery in your master page.