Hi ppl,

I have a select dropdown which has two events an onchange and onkeypress.
My problem now is when I use the keyboard arrows to select an item from the list in a select drop down the onchange is selected(invoked) before I even reach the second item in the list when using opera and IE but working fine with Firefox and chrome.The onblur event does not work either because the focus must be set to following tag

Anyone who has a way of solving this problem please help me.I thank you in advance.

Those unexpected results happens when you press a key, triggered by your onkeypress event.
You can prevent it by simply applying some conditional statement along with your functions that says': if ( event.type === 'keypress' ) { //...Prevent it from happening .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.