Skip to main content

jQuery - Add CSS Properties to an Element

Code


<script>
$(document).ready(function() {
	$(".newcolor").css('color', 'blue');
});
</script>
<div class="newcolor">some dummy texts here..</div>

Result

some dummy text here..