

























jQuery.combobox is a lightweight jQuery plugin which transforms a textbox into a combobox, so users can enter text or select from supplied options.
It could be called more than once on the same textbox, however only the first time calling counts -- which means you can't change the suggestions once the combobox is created.
It would work with jQuery.bgiframe plugin to fix the IE select/zIndex bug if you include it in the same page.
Tested in IE 7, Firefox 3.
<input class="combo" />
<link href="jquery.combobox.css" rel="stylesheet" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.combobox.min.js"></script>
jQuery('.combo').combobox(['option1', 'option2', 'option3', ...], {imageUrl : '/images/dropdown.gif'});
It's released under the MIT licence, so use it however you want.
By deerchao@gmail.com on 2009-3-16
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。