HTML link is not working

I am using one jquery that is multilayer menu but I met some problem with the link.

jQuery: http://multi-level-push-menu.make.rs/

The JS Array Demo: http://multi-level-push-menu.make.rs/demo/basicjs/basicjs.html

The link is not clickable when I implement into my code.

For example, in the demo site, click "devices" -> "Mobile phones" -> "super smart phones",

I put one link in "super smart phones" but this link is no clickable.

The page will not be direct to '/devices/mobile/supersmartphones/' which I defined in a tag.

Here is some parts of my code:

<a href="/devices/mobile/supersmartphones/">
    <i class="floatRight undefined"></i>Super Smart Phone</a>

.mlpm_w a {
display: block;
outline: none;
overflow: hidden;
font-size: 1.5em;
line-height: 1em;
padding: .2em .2em;
text-decoration: none;
color: #fff;
}

.mlpm_w a:hover {
color: #ffe;
}

.mlpm_w .floatRight {
float: right;
}

title: 'All Product',
    icon: 'fa fa-reorder',
    items: [
        {
            name: 'Mobile Phone',
            link: '/device/mobile/',
            items: [
                {
                    title: 'Mobile Phone',
                    items: [
                        {
                            name: 'Super Smart Phone',
                            link: '/device/mobile/supersmartphones/'
                        },

I don't know where is the problem, it's hard to explain, and sorry about that.

Thank you for you solving my problems.

Answers


You need to set preventItemClick false to handle menu to connect custom url.

$('#menu').multilevelpushmenu( { preventItemClick: false  } );

DEMO


The plugin handles events using its own event handlers that you may customize. For example, if you want to open a new tab with your content you would do it like this:

$('#menu').multilevelpushmenu({
    onItemClick: function() {
        $item = arguments[2]
        var URL = $item.find( 'a' ).attr("href");
        window.open(URL,'_blank');
    }
});
Fiddle

Need Your Help

Redirecting Pages: Names to Standard Address

apache wordpress .htaccess url-rewriting

I have WordPress installed in the root of a website, and recently enabled a custom permalink structure just for the sake of having good looking page URLs (only pages are used in this website, no po...

Is VERIFY(...) a good practice in C++ coding?

c++ coding-style verify

Also, how does it compare to throwing an exception when something goes wrong ?