This code is working fine if ($(this).val() == \"Spine\") but if ($(this).val() == \"Spine\"||\"Brian\") then the selection menu closes then opens
($(this).val() == \"Spine\")
($(this).val() == \"Spine\"||\"Brian\")
I would use a different approach. Especially if the list grows. If you get a list that has several parts, the conditional gets ugly.
var parts = ["Spine", "Brain"]; var value = $(this).val(); if($.inArray(value, parts) > -1){ //do something }