ASP.NET Slide Menu - Knowledge Base

« Back to Knowledge Base list

How to make child item disable?

Q:

How to make child item disable?

A:

You may make a child item disable by simple javascript add-on.

Let say you have a child item id = "myChildItem" that you want to disable the click.

You may add this code after SlideMenu declaration to disable click of childitem:

<script type="text/javascript">
    document.getElementById("myChildItem").onclick = null;
</script>