...

View Full Version : <select multiple> maximum?



twomt
06-02-2007, 02:21 PM
Hello,

can someone tell me how I can limit the number of options a user can select to 4, is there a maximum attribute?

<select name="VoteCoucil" multiple="multiple" size="6">
<option>...</option>
</select>

whizard
06-02-2007, 02:45 PM
You'll have to use javascipt for that.... for a script that will do it (I assume; I didn't test it), try here:

http://forum.weborum.com/lofiversion/index.php/t2454.html

I know, I know, I just sent you to a different forum *gasp*, but at least the code referenced was written by a (former?) CF'er....

HTH
Dan

twomt
06-03-2007, 07:04 AM
Works great, thanks for the tip.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum