add the onchange event in select dropdown list

Hi, i want to add the onchange event in
scheduler.config.lightbox.sections=[
{name:“sitename”, height:23, type:“select”, options:stores, map_to:“store_id”},
{name:“description”, height:130, map_to:“text”, type:“textarea” , focus:true},
{name:“recurring”, height:115, type:“recurring”, map_to:“rec_type”, button:“recurring”},
{name:“time”, height:72, type:“time”, map_to:“auto”}
in sitename dropdown list i want to add the onchange event. Please help me.

Not possible with default editor section, but you can write a custom one and attach any kind of html events to it

docs.dhtmlx.com/doku.php?id=dhtm … om_editors

Thanks for reply, i have added the custom editor but can you please tell me how i can access the node of my dropdown in custom editor. Please help me it is urgent. You can check here: sitecrewportal.com/hina.php

thanks

all section methods provides the node parameter - top html node of the section, you can use any dom methods to access the select elements, using node as start point, for example

node.getElementsByTagName(“select”)

will return array of select elements inside your custom section, after which you can use the necessary one ( this approach is better that direct childNodes references as in your case, because it will not be broken by changes in html layout )

Also, if you will need to locate “node” from outside of custom section code, you can use

var node = document.getElementById(scheduler.config.lightbox.sections[1].id);

Hi,
Thank you for the great help
Can you please send me some example because i am learning in dtmlx code. Also send me some correct solution. Please…

THINKS FOR INFORMATION

Hi, i want to add the onchange event in
scheduler.config.lightbox.sections=[
{name:“sitename”, height:23, type:“select”, options:stores, map_to:“store_id”},
{name:“description”, height:130, map_to:“text”, type:“textarea” , focus:true},
{name:“recurring”, height:115, type:“recurring”, map_to:“rec_type”, button:“recurring”},
{name:“time”, height:72, type:“time”, map_to:“auto”}
in sitename dropdown list i want to add the onchange event. Please help me.
hinabair

== Solitaire ==