Get your hands dirty on Javascript :Simple Task
Q -- Simple On click of table cell change the value and revert back after 2 seconds.
Level-Beginner | Language-Javascript
So finally you came in solution section .
Let's see what we are doing
1.Checking Table is not null
2.we are using two for loop to pass through every element.
3.Now we are triggering onClick event
4.then we use this keyword to access the innerHTML value
5.Then we are using setTimeout function
Level-Beginner | Language-Javascript
=======Think and try it yourself first =======
So finally you came in solution section .
Let's see what we are doing
1.Checking Table is not null
2.we are using two for loop to pass through every element.
3.Now we are triggering onClick event
4.then we use this keyword to access the innerHTML value
5.Then we are using setTimeout function
Comments