onclick event with selects

I have a select and I want to use something like the click event in VB. The problem with onclick event is it fires off when the mousedown and mouseup events is fired on the control and to select an item it take 2 clicks. But then again a user might click the select and then click something else so counting the clicks wont work.

Anybody know what event/ideas to use?

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

Why does it take two clicks to select an item?  Can you show us a sample of the code you are using for the select?  Thanks
VerolandAuthor Commented:
      Function cboMCat_onclick
            dim nMCat
            nMCat = document.DocData.cboMCat.options(document.DocData.cboMCat.selectedIndex).text
      End Function


When press to open the select/dropdown it registeres as an onclick
You are trying to return the value of the selected item when something is clicked (presumably the select) ?  Is this correct?

The SELECT element also has an onChange event that you might try -- it is fired whenever a new item in the list is selected.

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
VerolandAuthor Commented:
AHA, you can see my boss have stuck on F#$##$ VB to much, didn't even look at onChange

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

From novice to tech pro — start learning today.