Do a girl only want guys who live in attitude and don't respect?

A year ago , a girl proposed me and we came in relationship and everything was going very well , but suddenly she started ignoring me and reason was , her ex had come back and she only loved him but i had given her time , respect and i was with her in every problem and she dumped me for ex and now i never try to impress a girl because it hurts so much i think.
Do a girl only want guys who live in attitude and don't respect?
Post Opinion