Welcome Guest.
Not a member yet? Why not sign up today and start posting on our forums.
I need a little bit more help understanding this
#1

I need a little bit more help understanding this

If some could provide me with a line by line expiation I would really appreciate I’m new to this and want to understand it fully thanks

26 <option disabled selected value> -- select a student name -- </option> 27 <?php (start parsing) 28 foreach ($studentNames as $value) { 29 echo "<option value='$value'>$value</option>"; 30 }; 31 ?> (stop parsing)

56 <script> 57 var x = document.getElementsByClassName("color"Wink; 58 var i; 59 for (i = 0; i < x.length; i++) { 60 var temp = parseInt(x[i].innerHTML); 61 if (temp > 59){ 62 x[i].style.backgroundColor = "green"; 63 x[i].style.color = "white"; 64 } else { 65 x[i].style.backgroundColor = "red"; 66 x[i].style.color = "yellow"; 67 }; 68 } 69 </script>

submitted by /u/Fendy483
[link] [comments]
Reply