最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Implement multi column combo box using HTML + JavaScript - Stack Overflow

programmeradmin1浏览0评论

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 Java Swing.

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 Java Swing.

Share Improve this question asked Nov 19, 2010 at 1:47 Cheok Yan ChengCheok Yan Cheng 42.7k139 gold badges495 silver badges944 bronze badges 2
  • 1 Something like developer.yahoo.com/yui/datatable but that shows only the top row unless focused? – Mike Samuel Commented Nov 19, 2010 at 1:51
  • 1 yui datatable could be used inside the combo popup, but it's not a good enough answer to what he's asking. – Ruan Mendes Commented Nov 19, 2010 at 1:53
Add a comment  | 

3 Answers 3

Reset to default 5

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)

  1. 暂无评论