+ 4

Can anyone tell the mistake here why the CSS properties is not working

https://code.sololearn.com/WUaMW0OIpMFY/?ref=app When I click on next the next button calls a function and then defined the css of b in JavaScript then it's not working.

9th Jun 2017, 6:39 AM
Aditya Raj
Aditya Raj - avatar
1 Odpowiedź
+ 11
@Aditya, Please ckeck your JS function second(), nothing is calling it after inputing 194 so call it first and also using style property with document.write will only output the code in the write method, try document.getElementById(id).style.color = "green"; //hope it helps
9th Jun 2017, 7:23 AM
Awele Omeligwe
Awele Omeligwe - avatar