$(".className") return all the element having class .className , I want to add style only to a particular element i.e. I want to access element using their index number.
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<p class="para">first paragraph </p>
<p class="para">Second paragraph </p>
<p class="para">Third paragraph </p>
<script>
console.log($(".para"));
// console.log($(".para")[0].css({"color":"red"}));
</script>
</body>
</html>
In this code how can I add red color to the first paragraph and yellow color to second paragraph