Jump to content

Michitect

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Only the first content in my list (for example with the word "Aangeworven") dynamically changes the background color of the row. What should I do if I want to change ALL the lines to green, with the content "Aangeworven"? <a id="visi[@field:Status]"> <script> var isi = document.getElementById("visi[@field:Status]"); if('[@field:Status]' == 'Aangeworven'){ isi.parentNode.parentNode.style.backgroundColor = '#b3e6b3'; } if('[@field:Status]' == 'Te scouten'){ isi.parentNode.parentNode.style.backgroundColor = '#ffdab3'; } if('[@field:Status]' == 'Afgek
×
×
  • Create New...