Link to home
Start Free TrialLog in
Avatar of Veroland
Veroland

asked on

onclick event with selects

Hi
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?

Thnx
Avatar of knightEknight
knightEknight
Flag of United States of America image

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
Avatar of Veroland
Veroland

ASKER

<SCRIPT LANGUAGE="VBScript">
      Function cboMCat_onclick
            dim nMCat
            nMCat = document.DocData.cboMCat.options(document.DocData.cboMCat.selectedIndex).text
            
      End Function

</SCRIPT>

When press to open the select/dropdown it registeres as an onclick
ASKER CERTIFIED SOLUTION
Avatar of knightEknight
knightEknight
Flag of United States of America 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
AHA, you can see my boss have stuck on F#$##$ VB to much, didn't even look at onChange

Thnx