0

Can anyone explain to me how to trigger the "open" event on a select box ?

I've seen many sites hide select boxes and trigger it to open when clicking a div. Unify.js does this. I've gone through every line of code in Unify and I can't find out how to do it

Thanks

4

1 回答 1

1

睡了之后,我意识到像 Unify 这样的插件不会触发选择元素打开。相反,真正的选择框被放置在人造选择框之上并设置为 0 不透明度。这给人的印象是,当您实际上只是单击/点击不可见的选择元素时,甚至会触发 javascript。

于 2012-08-07T19:19:26.250 回答