To get rid of fleas in your carpet, you must treat your pet at the same time. Use Dawn dish detergent to bathe your pet in. Vacuum your carpet and then sprinkle it with salt. Wait for 24 hours and then vacuum again. Lastly, steam clean your carpet and furniture.