brucemand Posted June 27, 2011 Share Posted June 27, 2011 if a user uses the keyboard to change the value of a <select>, ie. up/down through the <option>s, does it trigger another onFocus event ?if not, how would you catch it then ? Link to comment Share on other sites More sharing options...
Ingolme Posted June 27, 2011 Share Posted June 27, 2011 The onfocus event fires just when the select is focused, even if the keyboard was used to focus it. Changing the value only happend after the element has been focused.If you want to detect when the content of the select has been changed, use the onchange event instead. Link to comment Share on other sites More sharing options...
brucemand Posted June 27, 2011 Author Share Posted June 27, 2011 The onfocus event fires just when the select is focused, even if the keyboard was used to focus it. Changing the value only happend after the element has been focused.If you want to detect when the content of the select has been changed, use the onchange event instead.ahh, *thanks* !!a much better event to use since it's being preloaded with a value. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.