html - Option element accesskey -


in html5:

all html elements may have accesskey content attribute set.

ie , firefox not support accesskey on option element, chrome, safari, , opera do.

however, support seems bizarre.

given html:

<select>   <option accesskey="a" value="alaska">alaska</option>   <option accesskey="b" value="baked" >baked</option> </select> 

… pressing alt+b focuses , highlights "baked" option.

however, pressing alt+b again causes select box blank , have no value – though has no empty option elements.

what's stranger though select value changes, change event not triggered unless press alt+b repeatedly.

what's going on?

fiddle


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -