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
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
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
ASKER
<SCRIPT LANGUAGE="VBScript">
Function cboMCat_onclick
dim nMCat
nMCat = document.DocData.cboMCat.o ptions(doc ument.DocD ata.cboMCa t.selected Index).tex t
End Function
</SCRIPT>
When press to open the select/dropdown it registeres as an onclick
Function cboMCat_onclick
dim nMCat
nMCat = document.DocData.cboMCat.o
End Function
</SCRIPT>
When press to open the select/dropdown it registeres as an onclick
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
AHA, you can see my boss have stuck on F#$##$ VB to much, didn't even look at onChange
Thnx
Thnx