Resetting a view HTML markup


John Clarke
In my app I am using to append html to a view. What would be the best way to reset the view to its original state ?

DecSoft

Hello John,

Probably the best is to identify what you add, so you can remove it later. You can do something like the below:

... and therefore you can remove what you added before:



John Clarke
If I added a HTML object can I just clear the HTML in that object. E.g. something like

John Clarke
Fixed.... I used

DecSoft

Hello John,

Yes; "html()" can do the trick. However, remember that don't remove the element from the DOM, just clear his HTML. Probably you already know this, so, forget it. :-)


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.