Skip to main content
improved formatting
Source Link
Phil Greer
  • 2.3k
  • 9
  • 21
  • 23

Yes, you can do it. Use this:

$("body #s4-topheader2. ul li ul li.static > a").each(function(index) {

if(index!=2) {

$("body #s4-topheader2. ul li ul li.static > a").each(function(index) {

if(index!=2)
{

    $(this).attr("href","javascript:void(0);");
}

});

}

});

Cheers !

Yes, you can do it. Use this:

$("body #s4-topheader2. ul li ul li.static > a").each(function(index) {

if(index!=2) {

$(this).attr("href","javascript:void(0);");

}

});

Cheers !

Yes, you can do it. Use this:

$("body #s4-topheader2. ul li ul li.static > a").each(function(index) {

if(index!=2)
{

    $(this).attr("href","javascript:void(0);");
}

});

Cheers !

Source Link
J.Shah
  • 188
  • 8

Yes, you can do it. Use this:

$("body #s4-topheader2. ul li ul li.static > a").each(function(index) {

if(index!=2) {

$(this).attr("href","javascript:void(0);");

}

});

Cheers !