| Ex No: 5 | UPDATE CELL CONTENT |
|---|---|
| Aim: | To write a JavaScript code to update cell content of a table by using row and column values. |
| Algorithm | |
| Step1: Create a folder “Ex5” to place the HTML files. | |
| Step2: Create HTML file “index.html”. | |
| Step3: Use document.getElementById method to get the table object. | |
| Step4: Use rows, cells and innerHTML property of the table object to update the cell content. | |
| Step5: Use JavaScirpt promtp to get the value to be updated. | |
| Source Code | Try It |
index.html
|
|
| Result: | Thus JavaScript code is written to update the cell content using row and column values. |