Im working on php-html-js templating shell, and i want to callback class, via ajax, as part of template html.
The view of html is something like that:
<center>this is main part</center>
<button class="btns"> class buttons </button>
<div> also main </div>
<!--[part:AJAX]-->
<div> BUT This part at first should be removed with comments, and all inside <!--[part:ANYVAR]--> till
the same comment: </div>
<!--[part:AJAX]-->
But after i need to do an oposite thing : remove all except for inside
Ps thank's for you attention :)