Jquery + Svg Object: Capture Click Event Properly June 27, 2023 Post a Comment Ok, i'm trying to capture click events on menu items Here's my html: <svg> root element of public/img/nav/profile.svg etc.If want to keep the handling as-is then you'll need to use an <image> element as the <svg> container rather than an <object> element. That comes with its own restrictions though such as no scripting and no fallback.A third option might be to put an absolutely positioned transparent div over each svg element and have the onclick handled on that.You'll have to chose whatever solution fits your needs best. Share You may like these postsI Want To Load Multiple Images Very Fast On A Website, What's The Best Method?Jquery - How To Add A Single Html Tag To Some Html?How Do I Get The Selected Value From A Select Box, From Inside An Iframe, And Display It On The Outside?Jquery Events Not Firing After "cleaning" Knockout Bindings Post a Comment for "Jquery + Svg Object: Capture Click Event Properly"