Im trying to output jquery code in innerHTML function, here i provide simple example of problem, if i output var b than it works but a doesnt.
<p class="test">a</p>
<script>
document.getElementsByClassName("test")[0].innerHTML = myFunc();
function myFunc() {
var b = "hey";
var a = $(".test").text("F:\\PROD\\DATA\\Logglistor\\Logglistor " + new Date().getFullYear());
return a;
}
</script>
</body>