Skip to content
Advertisement

How to print or get the cell value from HTML TABLE(User Input)

I have a table and in the table, I have tag to get user input. I want to print or get the value from the table cell. I want to input two number such as 12 and 14 and then print sum value at result id. I don’t want to use the form tag. Is it possible to do this? Thanks.

JavaScript
JavaScript

Advertisement

Answer

Here is a working example

JavaScript
JavaScript
Advertisement