i'm trying to find a way to make a multiple SELECT element more intuitive to
use by removing the need to use CTRL. all that you need is click once to
select, click once to deselect.

the simplest thing i could come up with is this:
$("select[multiple] option").mousedown(function(){this.selected =
!this.selected; return false;});

it works with FF and Opera but not with IE7 or Safari. Dont know if i need
to use something different or additional like e.stopPropagation or
e.preventDefault (are these deprecated in the current jQuery ver)?

thanks,
Leon
-- 
View this message in context: 
http://www.nabble.com/how-to-prevent-default-action-on-SELECT-%22multiple%22-elements-in-IE--tp16802947s27240p16802947.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to