If you have even medium complexity you're better off using something like React with Babel or Typescript. Much more sane way of event handling than JQuery, and no mucking with HTML by hand.
I agree with JQuery for the most simple sites, but React+transpiler will give you much better compatibility
I agree with JQuery for the most simple sites, but React+transpiler will give you much better compatibility