Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Ayoub AIT IKEN
12,314 PointsjQuery : DOM manipulation
Hey everyone ! can anyone tell me please, if there is a way that we can definitly and permanently change the html code with jQuery. to be more specific, for example when you append an element to another, it simply goes away when you reload the page. so is there a way, to make it permanent, even after reloading the page! to make the change in the html document itself, to write into it permanently with jQuery !
thanks guys
4 Answers
Andrew Chalkley
Treehouse Guest TeacherI don't think so. Unless you trigger something on the server side that effects the output.
You could use cookies and remove the element from the page again?
Michael Wiss
19,233 Pointshave you tried .replaceWith() ?
Ayoub AIT IKEN
12,314 Points@Michael Wiss yeah I actually did, but it doesnt do any good :/ !
miguelcastro2 thanks for the sharing !
Ayoub AIT IKEN
12,314 Pointsyeah I found out that it isnt possible, unless if there is a DB cnx or smthg ! Thanks Andrew Chalkley !
miguelcastro2
Courses Plus Student 6,573 Pointsmiguelcastro2
Courses Plus Student 6,573 PointsThere is no way that I am aware of.