Hello,
I have a standard select form which I want to keep open after selection in order to allow for multiple selections without having to take space at the page (when using the "multiple" option).
I tried to cancel the event propagation at the onclick event at each item as described at http://en.wikipedia.org/wiki/DOM_events
Both following approaches do not work (I am using firefox):
1)
2)
Any help appreciated!
I have a standard select form which I want to keep open after selection in order to allow for multiple selections without having to take space at the page (when using the "multiple" option).
I tried to cancel the event propagation at the onclick event at each item as described at http://en.wikipedia.org/wiki/DOM_events
Both following approaches do not work (I am using firefox):
1)
Code:
function removeSelectHandler(object) { object.onclick = null; } <option onclick="selected();removeSelectHandler(this);"></option>
Code:
<option onclick="selected();return false;"></option>
Comment