Hi,
Getting attracted to opposite sex is quite natural and acceptable. But need to know where to draw the line. Probably it could be due to emotional engagement, similarities or common likeability. Need to know, which made you to fall for the person or got you so attracted. Once you identified , this would help you to address the emotional issues too.
Next Steps
Focus on productive activity. Speak with your husband to have a couple counselling session. This would help your husband to understand your emotions in a better way and fill those gaps.