I am working on creating a table where a user can come in and edit the table, I created a script where it would add to the table but when the page refreshes the comments disappear. I have read that I need some additional tools to save comments on my HTML page. Is there a way to keep the comments saved on the table?
Any feedback is appreciated.
<table class="input"> <th id="lastcomment">Comment</th> <th id="lastcommentdate">Tool</th> <tr> <td> <input type="checkbox" id="toggle"> <label for="toggle">Comment</label> <dialog> <form id="engcomment"> <input type="text" name="message" id="user_input"> </form> <input type="submit" onclick="showInput();"> <label for="toggle">close </label> </dialog> <p><span id='display'></span></p> </td> <td></td> </tr> <script language="JavaScript"> function showInput() { document.getElementById('display').innerHTML = document.getElementById("user_input").value; } </script> https://stackoverflow.com/questions/65730053/keep-user-comments-on-table-after-refresh-page January 15, 2021 at 11:22AM
没有评论:
发表评论