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

=======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

This comment has been removed by the author.

Popular posts from this blog

HACK WEBSITE USING SQLMAP | KALI LINUX - BACKTRACK

Android 229 Keycode issue : Solved

FontAwesome import tricks | Block square error