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. :-)


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.