+ 1

Help!! Style of property null in Java Script?

https://code.sololearn.com/WCx6JsBSMl2A/?ref=app

9th Jan 2021, 3:13 PM
Sajid Ali
Sajid Ali - avatar
6 Réponses
+ 1
First of all ids are case sensitive so write java instead of java Second it will be style.display = "block" And you also need to hide JavaScript With the same method
9th Jan 2021, 3:28 PM
Krish
Krish - avatar
+ 4
Your JS is getElementById('Java') but in your HTML, you don't have an element with id of Java
9th Jan 2021, 3:17 PM
Gordon
Gordon - avatar
+ 2
Write ' java' in small or capital letter in both HTML and js codes.
9th Jan 2021, 3:24 PM
HBhZ_C
HBhZ_C - avatar
+ 2
Thank You for find my small mistake ❣ Now fixed !
9th Jan 2021, 4:39 PM
Sajid Ali
Sajid Ali - avatar
+ 2
Happy coding you 2 :) ,, This Project completed :p And check my code and suggest how can i improve this more ?
9th Jan 2021, 4:51 PM
Sajid Ali
Sajid Ali - avatar
+ 1
Glad to know you got it Sajid Ali Happy coding 😉😉
9th Jan 2021, 4:49 PM
Krish
Krish - avatar