Click to See Complete Forum and Search --> : forcing ctrl on a multiselect


anarchist
04-15-2003, 04:21 AM
I currently have a multiple select list box, and need to make things easier to use, as its possable that the user doesnt know enough about computers to know they can hold ctrl to select more than one option

what I'd like to do, is make the list box act as if the ctrl key is pressed

adding
window.event.ctrlKey=true
to the onclick event gives a member not found error

can anyone help?

Nevermore
04-15-2003, 04:59 AM
Put the word multiple in the select tag. I.e. <select multiple>

Nevermore
04-15-2003, 05:00 AM
Sorry, misread the question. Will post a real solution when I can.

anarchist
04-15-2003, 05:21 AM
thanks, that fixed the error, didnt realise I'd missed that out

unfortunatly it didnt solve the original problem, as it still diselects the previously selected options when you click normally. I've tried various other events thena the onclick with no luck, am I trying to do the impossable?

anarchist
04-15-2003, 05:29 AM
dont worry about it, looks like its going to be too complicated, so we're going with a 2 select box method, one for unselected and one for the selected options

Change of plan still need the forced control thing to select multiple options without having to hold ctrl