开发者

Selecting a dropdownlist by tabbing into it, which event?

开发者 https://www.devze.com 2023-03-03 08:46 出处:网络
I have a javascript function that needs to run when a user clicks on a dropdownlist, basically it needs to show some extra information about the option in that dropdownlist.

I have a javascript function that needs to run when a user clicks on a dropdownlist, basically it needs to show some extra information about the option in that dropdownlist.

$('.sc开发者_Go百科aleAnswersDropDown').click(function () { ShowExtraInfo(); });

This works as intended, but doesn't trigger when the user uses the tab key to select the dropdownlist... Is there a way to capture this event and as such show the extra info as well?

thanks

Sam


api.jquery.com/focus – Meke 36 mins ago

Copied for closure. :)

0

精彩评论

暂无评论...
验证码 换一张
取 消