(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    I tried to use javascript function with the "Title item" of my javascript tree view.

Return to Recent Questions


Q: I tried the following for subitem and it worked but not working with the "Title item" (Group or header item), is there a way to process onclick for the title item? 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 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

Free and Easy Website Builder Offline Mobile Website Builder Software  |  Best 18 Landing Page Bootstrap Theme Roundup  |  Bootstrap Table Template  |  Bootstrap Alert Colors  |  Top Mindblowing HTML Image Slideshow Ideas  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | AI Website Generator | Website Generator AI | AI web design generator | AI web page design generator