How to validate ToCheckList jQuery plugin (or multiple select fields)?

Posted by Chad on Stack Overflow See other posts from Stack Overflow or by Chad
Published on 2010-02-09T02:38:53Z Indexed on 2010/04/21 9:23 UTC
Read the original article Hit count: 345

Filed under:
|
|

Anyone ever use the toChecklist jQuery plugin? It basically turns a multi-select box into a list of checkboxes. Makes it easier for users to understand that they can choose more than one item - excellent plugin.

However, I'm trying to make sure that users on my site pick at least 1 item in the list. ToChecklist has the capability of limiting the selection to a max value, but not minimum.

I'm already using the jQuery validate plugin to validate the whole form, any ideas to get it to work against a multi-select box (which would then hopefully just work with toChecklist)?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about validation