+ 1

jQuery append() ....is it permanent or just untill html page is refreshed

Currently if I use it with NetBeans and it works but if i refresh it's back to normal

24th Aug 2016, 3:25 PM
Ed Hanlon
Ed Hanlon - avatar
3 ответов
+ 2
Don't forget that js runs client-side, you can't expect dynamic changes made via js to be permanent. You would at least need to send data to the server for that (or use sessionStorage/localStorage if you only need to store the data client-side for some reason), and then either use php to modify dynamically the page served (provided data was sent to the server), or run the js using that data each time the page is requested. I'm unsure of what you are trying to do exactly, but I think that should answer your question. tl;dr Make the changes server-side with PHP rather than client-side with js if you want them to be permanent.
25th Aug 2016, 1:31 PM
Zen
Zen - avatar
0
I was looking to create a client feed back form which updated the html permanently for all to see
25th Aug 2016, 1:46 PM
Ed Hanlon
Ed Hanlon - avatar
0
Paste your html file link directly to web browser address bar. Maybe your netbeans has setting problem. You dont provide your code, so hard to give a right answer here.
25th Aug 2016, 10:32 PM
Dick