Jquery: Multi Column Select Box

Posted on: Sep 24, 2008 by wenbert

This quick tutorial assumes that you already have jquery.js setup. Here are the instructions:

  1. Create a div with a table name the identify the div with a class “ex. datatable”
    <table cellspacing="0" width="100%">
    <tr>
    <td>1234</td><td>Apple</td>
    </tr>
    <tr>
    <td>1111</td><td>Cat</td>
    </tr>
    <tr>
    <td>5555</td><td>Dog</td>
    </tr>
    </table>
  2. Include of course jquery.js and jquery.multicolselect.js
  3. Put this as javascript
    $('.datatable').multicolselect({
       buttonImage:"selectbutton.gif",
       selectedID:"test2",
       eqVisible:1,
       eqHidden:0
    });
  4. Note you need the “selectbutton.gif”. You can get a screenshot of the original Windows dropdown and then use Photoshop to crop it and save it as selectbutton.gif
  5. Then your done.

Thanks to Jack for this tutorial. He found it here.


Subscribe to comments Comment | Trackback |
Post Tags: ,

Browse Timeline


Comments ( 3 )

Why no links to the plugin code or a demo??

redsquare added these pithy words on Sep 24 08 at 4:06 PM

@redsquare, I haven’t found the time yet. I am still at work — I will probably come up with something when I’m at home. ;)

But to give you an idea, it is just like a dropdown menu, but with 2 columns.

UPDATE: I have updated the jquerymulticolselect.js to link to the JS file.

Wenbert added these pithy words on Sep 24 08 at 4:09 PM

Jquery Multi Column Selectbox

http://code.google.com/p/jquerymulticolumnselectbox/

stream added these pithy words on Oct 08 08 at 11:25 AM

Add a Comment


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">


© Copyright 2007 eKini Web Developer Blog . Thanks for visiting!