Answers for "how to use a variable to change css value in jquery"

CSS
0

jquery change css variiable value

$("html").on('click', function() {
  
  $("body").get(0).style.setProperty("--color", "hotpink");
  
});
Posted by: Guest on June-13-2021

Code answers related to "how to use a variable to change css value in jquery"

Browse Popular Code Answers by Language