What is the best way to get rid of fleas? and how do you get them away from their eyes?

I live in an apartment and I think somone else has fleas and now my animals have them. I don't like them and they can hurt them. What do you all suggest?