Tilde (~) sibling selector

Tilde (~) sibling selector

I want to select all subsequent divs to a currently selected one, but the tilde selector doesn't seem to work. I would expect the following code to hide every div after "#currentDiv", but it doesn't.

$('#currentDiv ~ div').hide()

If I try to select something other than a div, however, it does work.

$('#currentDiv ~ p').hide()

Any ideas?

Thanks,
David