How to work with Html panel

Grafana 8

Could you please tell me how to work with html panel?
I try to execute simple javascript but it doesn’t work

HTML

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
</head>
<div class="test1" id="test1">"Click Me!"</div>
</body>
</html>

JavaScript Code
$( “.test1” ).click(function() {
alert( “Hello world1” );
});

OR

document.getElementById(“test1”).onclick = function(){
alert(‘Hello world2’);
};

I had a similar issue when trying to run some javascript in the HTML panel. See this thread and see if it helps.