You haven't give your daughter's details, it is impossible to understand whether she is a child or mensturating girl.
If she has attained menses, the "pink jelly" could be intermittent bleeding. If this is the initial stage of menses there are high possibility of variations which causes irritation etc.
Your doctor has suspected Urinary tract infection
and has provided medications which you find is of no use.
If this is due to her irregular periods
you need to consult a gync for further examination. she may also give antibiotics if it is a local infections.
Please try to give enough details to help you better next time