I have got two php-generated values: abc
and 123
. This is example ready HTML document.
<script>
var a = 'abc';
var b = '123';
function changeValue()
{
}
</script>
<button onclick="changeValue()">
<script>
var c = 'xyz';
</script>
and I don't know how to replace value of var c
when button is clicked. What function should I use in changeValue()
? Please, show me right direction, then i'll find solution bedause now I have got no idea how to deal with var value.