(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    I tried to use javascript function within the "Title item" of my vertical dropdown menu.

Return to Recent Questions


Q: I tried to use javascript fuctions for subitem and it worked fine but not working with the main items (Group or header item), is there a way to process onclick for the title item in vertical dropdown menu? Thanks again.

You're able to use Javascript for each item, for example:
var tmenuitems = [
["item text", "javascript:your_code_here"]
];

A: Unfortunately, title items doesn't allow you to use Javascript in the same way.
But you can do the following:

var tmenuitems = [
["<div onclick='your_code_here'>title text</div>"]
];






Return to Recent Questions

Related:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. bootstrap 4 themes | easy website builder | bootstrap navbar template | free icon maker | responsive slider