Add, select, or clear items | Select2 - The jQuery replacement for select boxes

Programmatically adding, selecting, and clearing options in a Select2 control.