I took ranitidine 150mg twice daily & am still breastfeeding. After 5 days I had bruises on my legs and so did my toddler. Do I need to get him checke?

Probably not. You said he's a toddler. If the bruises are on areas that are commonly bruised in a toddler it is probably fine. If he has petechial blood spots in his mouth, bleeding gums, or bruising in areas not easily traumatized i may merit a check at the doctors' office.