JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
<img src=myimage.jpg id=image___1>
JavaScript
function myfunction(){
console.log('oooooooook');
}
jQuery('#image___1').myfunction();