Hello!
Please, is there any help, I am trying to change tvo values using only one button, here is the code;
<!DOCTYPE html>
<html>
<body>
<h2>What Can JavaScript Do?</h2>
<ul>
<li id="demo">Java</li>
<li id="lala">PHP</li>
<li id="lili">C sharp </li>
</ul>
<button type="button" onclick="document.getElementById('lala').style.fontWeight = 'bold'">Bold</button>
<button type="button" onclick="document.getElementById('lala').style.color = 'red'">Red</button>
<button type="button" onclick="document.getElementById('lili').style.color = 'red'">Red</button>
</body>
</html>
Many thanks!