<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2722.900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>sure... i have done it before... i dont
have the code but you will want to look into doing the following...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-new array to hold current values of selected
indexs (HOLDER)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-select.onchange will evoke your function to
check</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-onchange function:</FONT></DIV>
<DIV><FONT face=Arial size=2> check length
of HOLDER</FONT></DIV>
<DIV><FONT face=Arial size=2> if > 3 then</FONT></DIV>
<DIV><FONT face=Arial size=2>
loop select and reset values to unselect
</FONT></DIV>
<DIV><FONT face=Arial size=2>
loop HOLDER set select.options[HOLDER].selected to
true</FONT></DIV>
<DIV><FONT face=Arial size=2> else</FONT></DIV>
<DIV><FONT face=Arial size=2>
loop select and insert selected indexes into
HOLDER</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Anyway, this is where I would start.... I
would recommend getting O'Reilly's Javascript - The Definitive
Guide</FONT></DIV>
<DIV><BR><FONT face=Arial size=2>~ Terry<BR>757 581-5981<BR>AIM/Yahoo:
lv2bounce</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "David Hannum" <</FONT><A
href="mailto:hannum@ohio.edu"><FONT face=Arial
size=2>hannum@ohio.edu</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: <</FONT><A
href="mailto:javascript@LaTech.edu"><FONT face=Arial
size=2>javascript@LaTech.edu</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Thursday, December 12, 2002 7:52
AM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: [Javascript] Limit Choices in Multiple
Select Box</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial
size=2>> I'm using a script that when a user selects an option in a
multi-select box,<BR>> it places it in another box. What I need to do
is limit the number of items<BR>> in the second box to three. Can this
be done?<BR>> <BR>> Dave<BR>> <BR>> <BR>> <BR>>
===============================<BR>> David R. Hannum<BR>> Web
Analyst/Programmer<BR>> Ohio University Computer Services<BR>>
Administrative Systems<BR>> (740) 597-2524<BR>> <BR>> "If your wife is
having fun, and you're not . . .<BR>> You're still having a lot more fun than
if<BR>> you're having fun, and she's not!" (Red Green)<BR>> <BR>>
_______________________________________________<BR>> Javascript mailing
list<BR>> </FONT><A href="mailto:Javascript@LaTech.edu"><FONT face=Arial
size=2>Javascript@LaTech.edu</FONT></A><BR><FONT face=Arial size=2>>
</FONT><A href="https://lists.LaTech.edu/mailman/listinfo/javascript"><FONT
face=Arial
size=2>https://lists.LaTech.edu/mailman/listinfo/javascript</FONT></A><BR><FONT
face=Arial size=2>> <BR>> </FONT></BODY></HTML>