(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

Website Builder for portfolio and SEO Website Builder for Beginners, Bloggers, Writers, IT Companies  |  Best Website Builder for Education, Software Companies, Designers, Videos  |  Website Builder for Online Stores, Restaurants, Musicians, Real Estate  |  Best Website Builder for podcasts and affiliate marketing  |  Website Builder for nonprofits and therapists  | 
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 Builder | Free AI Website Generator | AI Website Generator | AI web design generator