开发者

trigger a select box to drop down either by javascript or by jquery when any other object is clicked

I want a select box to drop down when a button is clicked.

This is because we are 开发者_JS百科showing a custom select box in which only the drop down will be visible and the head of select box will be submerged below an image. So that the select box might appear like a custom select box.


I don't think that's possible with the native control. You can set the selected option programatically but not the drop down.

Instead , why not use a div with list items to show on click of the image? You want to show a custom select box anyway. Here's a great article to get you started.

If you don't want to implement your own, you can take a look at the plethora of jQuery plugins available.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜