开发者

How to make a select field show list of options? - Javascript/jQuery

I'm trying to mimic focus on a select field.

e.g. When a user gains focus on a select field, the select field shows the options in a drop down list.

When using $('select').focus(开发者_JS百科), the options are not shown.


Any help on this one guys? =)


Set the size attribute of the select to 6 (or whatever small int you like) on focus and back to 0 on blur.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜