Javascript:替换< select>与< div> ;? [英] Javascript: replace <select> with <div>?
问题描述
有什么方法可以将< select>
标签替换为< div>
c $ c>< div> 点击时会下降吗?
不是一个完整的解决方案,但可能需要一些js或jQuery库/插件来执行此操作。我可以花一天来开发它,但也许有人已经做到了这一点?
Is there any way to replace <select>
tag to a <div>
with hidden <div>
that drops down when clicked?
Not a full solution, but maybe some js or jQuery library/plugin to do this. I can spend a day developing it, but maybe someone did have already did it?
我需要它的原因是joomla管理界面 - 下拉列表包含非常长的值,并且我必须将固定宽度设置为< select>
s
The reason i need it is the joomla administrative interface — the dropdown list contains very long values, and i had to set fixed width to those <select>
s
感谢您的帮助! / p>
Thank you for any help!
推荐答案
我尝试了很多选择替换的JQuery插件,并在选择框 - 一定要查看演示页面。有很多种插件可用于此目的,所以如果这个插件不能满足您的需求,我相信您会发现一个插件可以处理一些Google-fu。
I tried out quite a few select replacement JQuery plugins, and settled on select-box - be sure to check out the demo page as well. There's a wide variety of plugins for this purpose, so if this one doesn't meet your needs I'm sure you'll find one that does with a little Google-fu.
这篇关于Javascript:替换< select>与< div> ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!