Skip to content Skip to sidebar Skip to footer

Edit Div And Have Updated Information On Page Reload

So i have posted div which can be edited or deleted.Take a look at given link Here is the JS fiddle link Now i want the original code in html to get updated and show updated inform

Solution 1:

Saving input from the User and showing on page load

I suggest on your done button click, use jquery ajax api.jquery.com/jQuery.ajax to send the input from the user (escaped using stackoverflow.com/questions/24816/…) to the db.. then encoding it again on the page load when you fill your div with the saved data from the DB..

few notes though - use a parametrised stored procedure to store the html in the database .. otherwise you'll be vulnerable to sql injection (google.de/…) –

Post a Comment for "Edit Div And Have Updated Information On Page Reload"