Hiding multiple elements' parent container (by child element id)
That is pretty close to the optimal way of doing it.

Personally I would go for

//Hide items
$("#item2, #item3, #item6").parent().hide();