Deselecting all elements from a multi-select dropdown in jQuery
The easiest way that I found to unselect all options in a multi-select dropdown was using .val([])
.
$("#select").val([]);
Try -
$("#edit-rec > option").attr("selected",false);
Demo - http://jsfiddle.net/LhSBu/
$("#edit-rec option:selected").removeAttr("selected");