I am aware that you can use .val() to change which options are selected in a select multiple=multiple but,
How can you simply select/deselect one option, without changing the state of the other options?
In this case it's easiest to de-select the particular option:
$("#select option[value='"+val+"']").removeAttr("selected");
option[value='"+val+"'] is what i was looking for :)You do not have to use jquery for everything.
var el = $(..)[0];
el.options[i].selected = false;