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


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

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


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.