Results 1 to 4 of 4
Thread: onClick in <select>
Nov 19, 2007, 10:38 #1
- Join Date
- Jul 2004
- 0 Post(s)
- 0 Thread(s)
onClick in <select>
I know there is no onClick event in <select>. I was wondering if there is a way to do that.
What I have right now, is a text box. When somebody enters some text in this text box, a <SELECT> box is fetched with AJAX (with size=20). When user presses DOWN key in the text box (keyCode=40), it selects the first element of thist <select> box.
It works up until the step above. But, when it selects the first element, <SELECT> box disappears ( that's how it works) because onChange event fires for that <SELECT> box.
What I want is that this <SELECT> box does NOT DISappear UNTIL user presses ENTER (working) OR user CLICKS in this select box.
Is that possible? Is yes, then how?
Errors = Improved Programming.