She only acted like she was attracted, she wanted to make Ash jealous to test his love. She wasn't attracted to Danny at all. By the way, Danny is too old for Misty. Misty said "I prefer the mature, intellectual type", and she only said that to hide and deny her love for Ash, which is definitely there. Misty isn't attracted to mature, intellectual people, she's attracted to Ash.
If she was trying to make him jealous it might have been better to go for someone who was a little younger. I felt he was such a cradle robber and that she was a testicle digger.