javascript - How to drop a select list by 'onmouseover'? -


how can drop down select list onmouseover instead of clicking it. select list cannot clicked in javascript emulate that. eg: onmouseover="(this.click())"

also setting 'size of select list' = 'its length' in javascript not accurately emulate click event because adjacent layout changes. tried using z-index , position attribute doesn't help.

here's clever hack oldish devshed post

select box expand onmouseover - dev shed

here's example in action:

http://jsfiddle.net/87nyg/1


personally i'd prefer 3rd party or custom solution opposed hacking <select> element


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -