0
   

Add Colors To Javascript Array Elements

 
 
Reply Sat 3 Sep, 2016 04:33 am
I have multiple of these elements in my Javascript:

group[0][0]=new Option("Coursera","http://www.xxxabc.com/p/coursera.html")

I want to add a number with every option and its color so that the option would become "Coursera 80" with 80 being highlighted in green, similarly, if the option is below 70 then yellow, below 50 then red
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 1,892 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » Add Colors To Javascript Array Elements
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/18/2024 at 05:51:24