im really new to javascript and im kind of stuck with two problems :
-first problem: how can i display variables in html code, here's mine:
<script type="text/javascript">
var $first = 1000;
var $seconde = 50;
var $percentage = 0;
function pourcentage(somme, but) {
percentage = ((somme / but ) * 100);}
function incremente() {
$first = $first + 10 ;}
</script>
and here's what im trying to do:
<li><a href="#">first variable $first seconde one is $seconde</a></li>
-2nd problem is how to use a function onclick:
<li class="blue"><a href="#" onclick="incremente()">stuff</a></li>
thank you for your time :)