Swollen glands in the neck are usually caused by an infection from bacteria or viruses. The lymph nodes in the neck, under the chin, in the armpits, and in the groin are common areas where you might notice swollen lymph nodes. Other causes of swollen glands in the neck include non-infectious conditions such as rheumatoid arthritis or cancer. If swollen lymph nodes are caused by an infection, treatment depends on the cause, and in some cases, warm compresses and the passage of time may be all that is needed to treat them. However, if swollen lymph nodes are getting bigger or they have not gone down within two weeks, or if they feel hard or do not move when you press them, it is recommended to see a doctor.