Relative Content

Tag Archive for javascriptphpwordpressrow

How to add a row to a JS table with php data

I want to create a row in a table when I click on a submit button. The problem I have is that when I want to generate the title and date of the post created, I have undefined. It do not find the data.
I use LocalStorage because when I reload the page I want the list of the row to be displayed, but it doesn’t work. I reload the page and the row disappear.