Answers for "jquery get element style value"

CSS
7

jquery set style property

$("selector").css("property", "value");

// Example:
$("div").css("background-color", "red");
Posted by: Guest on October-01-2020
1

get css value jquery

var font-size = $('p').css('font-size');
console.log(font-size);
Posted by: Guest on October-18-2020

Browse Popular Code Answers by Language