开发者

Implement multi column combo box using HTML + JavaScript

I am looking a multi columns combo box by using HTML + JavaScript only. Is there any example or library available? As I came across some solution, they are in ASP.NET, but not pure HTML + JavaScript.

Here is an example but it is implemented using 开发者_StackOverflow社区Java Swing.

Implement multi column combo box using HTML + JavaScript


If jQuery is an option, here's a plugin that looks like it can deliver this:

Jquery Multi Column Selectbox


Flexbox is probably the best one I have ever used with jQuery, with paging and JSON support :

http://flexbox.codeplex.com/

It's a real combo box, as it displays the results by typing. It can be easily restyled through the CSS.

Eg. to modify the rows :

.ffb .content .row {
    border-bottom: 1px solid #828790;
    clear: both;
    color: #000000;
    height: 20px;
}

border-bottom may be removed to get rid of lines between rows.


http://dev.sencha.com/deploy/dev/examples/form/combos.html Shows ExtJS's combo box. Their combo box can be customized with template to be used for rendering each entry. All you'd need to do is to specify a template that contains a few spans with a set width.

If you're willing to use ExtJS (not free), write it in here, and I'll show you an example

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜