How to change the style of any element using JavaScript?

Solution

You change the style of any HTML element using JavaScript.

The syntax to change any HTML element using JavaScript is given below:

document.getElementById(id).style.property = new style

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media