(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

Landing Page Maker - Landing Page Maker Whitelabel Website Builder - HTML Code Generator  |  Nice and Simple HTML Website Maker with HTML Code Export  |  No Coding Website Builder - Easiest Website Builder  |  Website Design Tool - Website Development Software  |  Best Free QR Code Generators 2023  | 
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 Maker | Free AI Website Generator | AI website design generator | AI web page design generator