I want increase the font size of parent element. When i use my code it will increase full body font size how can i avoid that issue?
Example based on the id="vs-1"
i want increase the font size of the grant parent li text here 1940 .
$("li #vs-1").parents().css({
'color': '#ff3600',
'font-size': '35px'
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<ul>
<li>1940
<ul>
<li style="background-color: rgb(255, 54, 0);" id="vs-1"></li>
</ul>
</li>
<li>1970
<ul>
<li id="vs-2"></li>
</ul>
</li>
</ul>
When i use this code it will affect entire body ul li tag . Please give me the solution. Thanks