var selected_perms = $(this).children("option:selected"); var unselected_perms = $(this).children().not("option:selected");