My index.html
<div id="dropDownBolumDiv" class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 38px, 0px); top: 0px; left: 0px; will-change: transform;">
</div>
<script>
var parameterYil = document.getElementById("dropDownYil1").value;
var bolumler = ["ELEME MAKİNALARI", "ELEVATÖR", "EXCELL", "FOTOSORTER"];
for (i = 0; i < bolumler.length; i++) {
$("#dropDownBolumDiv").append("<a class='dropdown-item' onclick='refreshCharts(parameterYil,"+bolumler[i]+")'>" + bolumler[i] + "</a>");
}
</script>
For example : when I clicked EXCELL,nothing happen.And console error says;
Uncaught ReferenceError: EXCELL is not defined at HTMLAnchorElement.onclick
What is problem ?