I think you could have gotten away from this. You obviously have two guys ready to go wild in this pot, a JJ sized preflop bet, and a jack on the flop. If you had some basic reads on these guys I think you could have figured out whether or not to fold this.

HOWEVER, this is me talking like a know-it-all after seeing how the whole thing panned out. I know for sure I would call this too; knowing the whole time that I should be folding it. But I play at 25NL and too many guys are pushing these with flush draws so it pays me. I dunno about your level.

* I hope everyone noticed my use of the rarely needed semi-colon!