Answers for "css() in javascript"

11

jquery add style

//revising Ankur's answer
//Syntax:
$(selector).css({property-name:property-value});

//Example:
$('.bodytext').css({'color':'red'});
Posted by: Guest on July-08-2020
5

edit css jquery

$('.ama').css('color','red');
Posted by: Guest on March-23-2020
1

how to css in jquery

$(init);
    
function init() {
    $("h1").css("backgroundColor", "yellow");
    $("#myParagraph").css({ "backgroundColor": "black", "color": "white" });
    $(".bordered").css("border", "1px solid black");
}
Posted by: Guest on October-22-2020
7

how to give css style in javascript

document.getElementById("myH1").style.color = "red";
Posted by: Guest on September-18-2020
1

css in js

JSS is an authoring tool for CSS which allows you to use JavaScript to describe styles in a declarative, conflict-free and reusable way. It can compile in the browser, server-side or at build time in Node.

JSS is framework agnostic. It consists of multiple packages: the core, plugins, framework integrations and others.
Posted by: Guest on March-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language