this is my coding. in this coding i want to print table in innerHTML in
paragraph tag.This is working but the problem is when i click submit button this result show only
When you call demop.innerHTML = something you overwrite it each time. You should either:
demop.innerHTML = something
result
innerHTML
Concatenate the different results by doing
demop.innerHTML = demop.innerHTML + (value+"*"+ a +"="+ value*a);