Self-Righteousness

What is self-righteousness, how do we detect it in our own lives, and how can we combat it?