Sadly, I've experienced this too many times in my life. Back in my younger days, I was quite attractive but I'm also very intelligent. When I practiced law, the number of men that treated like some sort of Barbie dressed in a lawyer suit was astounding. Whatever, underestimating me like that makes it all that much easier to mop the floor with them in court, which I did.
Sadly, the media in movies, TV, etc still perpetuates this crap hot dumb girl, brainy, "Cute in the right light" girl, dumb hot jock, computer nerd with pocked protector....you get the idea.