Prakash

Prakash

  • NA
  • 258
  • 78.5k

Select Id of li and set selected class

Oct 4 2017 3:26 AM
Hi Experts,
 
var v1= 100;
 
 
<ul id="myUl">
      <li value=100>A</li> 
      <li value=101>B</li>
      <li value=102>C</li>
      <li value=103>D</li>  
</ul> 
 
 
 
when page load i have value 100. i want on page load li color is blue whose value is 100.
 
 so how can i do..Please Help me
 
Thanks  
 

Answers (3)