[Javascript] Fw: Current value on multiple select
Michael Borchers
list at tridemail.de
Tue Nov 20 02:07:52 CST 2007
I have a multiple select <select name="foo[]" onclick="showCurrent()">
with options like
<option value="1">1</option>
<option value="2">2</option>
The idea is to select multiple options by clicking (adding or removing with using CTRL key or whatever) but making the function showCurrent alert only the value I just clicked on.
Example 1:
Option 1 has already been selected. Now i click Option 2 and the function alerts '2';
Example 2:
Option 1 has already been selected. Now i click Option 2 while pressing the CTRL key and the function also alerts '2', not '1'!;
Can you help me with the function?
Thanks!
Michael Borchers
Tridem GmbH
http://www.tridem.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20071120/b00990d0/attachment.htm>
More information about the Javascript
mailing list