my husband is behaving like a jerk, what do i do?

Again why would you go ahead discussing the details anything with your friend in a way that makes you so involved when you already knew your husband isn’t comfortable with this friendship?