struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <new...@pingsite.com>
Subject [OT] Re: How to restrict number of chocies in multiple html:select
Date Wed, 29 Mar 2006 17:05:16 GMT
Adam Lipscombe wrote:
> With an <html:select .. multiple="true"> is it possible to restrict the
> number of selections that can be made?
> To say 2 or 3?
>
> OK I could validate the number selected in the actionform or in javascript
> but I would really like to tell the combo box to only allow N selections.
>   

AFAIK this is completely browser-controlled as it's a standard HTML
select tag. You would need to use JavaScript.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message