Add .disabled to a <li> in the dropdown to disable the link.

{% highlight html %} {% endhighlight %}