HTML select trigger by a div or an image

I have a ` On some websites, I've seen that this menu can be triggered via an external image or div. I've searched on google but almost all questions and answers are related to how to list images inside a select, **which is not what I need**. I want select menu to appear when a DIV or an image is clicked. How can I trigger this select menu via a click to another DOM element, i.e., a div? PS. My website already has jQuery included.
You can't unless you use some custom selectbox made of divs and etc.

以上就是HTML select trigger by a div or an image的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准