Link to home
Start Free TrialLog in
Avatar of akohan
akohan

asked on

How can I get the Onclick class event for all the Select elemaents in a CDHtmlDialog class

Hello Group,

I added the following code into my DHTML_EVENT_MAP but it didn't work;
DHTML_EVEN_CLASS(DISPID_IHTMLSELECTELEMENT_ONCHANGE, _T("cDLY"), OnSetDelay)

Can you please help me out?
ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of akohan
akohan

ASKER

Sorry, my bad, it was a mistype, I wrote this code;
DHTML_EVENT_CLASS(DISPID_IHTMLSELECTELEMENT_ONCHANGE, _T("cDLY"), OnSetDelay)

There are two select elements in my HTML code with the "cDLY" as their class, but they don't fire the event and the program never runs the OnSetDelay function. Please notice that I want to get the event on all select elements with the "cDLY" as their class. I can get the event by using following code;
DHTML_EVENT_ONCHANGE(_T("DLYID"), OnSetDelay)
but useing this code I have to add an individual line for every select element I have in my page.