Why not just talk to him and tell him you noticed he has not paid much attention to you and you would like for him to do so. Communication is critical in relationships. You're in a committed relationship so I'm not sure that what you did was very respectful to him or mature or will result in your husband paying more attention to you or feeling you respect your relationship if its so easy for you to go and "get attention" from strangers if you feel you're not getting it at home.🤷🏽♀️
This is very childish behaviour. Talk to each other like adults.
Not bad, but not good either. Glad they were able to make you feel better or stroke your ego for the moment but you should definitely talk to your hubby about his lack of attention to you. Good luck!
And yes, I did tell my husband that I did this.