I tried this but it doesn't work:
$('div').add($(this).siblings());
I want to animate the siblings simultaneously. Can anyone help?
You need to use .addBack() to get both the div and its siblings. In jQuery versions earlier than 1.8, you should use .andSelf() instead, which is now just an alias for .addBack() (thanks Sable).
// jQuery 1.8+
$("#myDiv").siblings().addBack();
// jQuery <1.8
$("#myDiv").siblings().andSelf();
This maybe?
$('div').add($(this).siblings('*'));