I have an undordered list
- Aditya
- Sam
This part confuses me.
1)If I return a response to javascript which gives the "Name" and I add a list element "Name" to the dom.Then on page refresh, that element is not found on the page.
2)If i do not return a response and just add to database , then i have to refresh the page to see the changes.
I am using plain javascript based ajax call , not using jquery etc.
How to fix this issue?