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?
akohanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Meir RivkinFull stack Software EngineerCommented:
you wrote DHTML_EVEN_CLASS instead of DHTML_EVENT_CLASS, could it be it?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
akohanAuthor Commented:
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.


0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.