Answer the question
In order to leave comments, you need to log in
How to insert an invalid piece of code using js?
In general, there is one template for a part of an inner page that is used by several other pages with different structures. And on one of the pages the layout is going. so that the layout does not go, you need to add a piece of code there. The code is like this:
</div></div><div class="col-xs-12 col-sm-9 col-md-10 col-lg-10 windows_plane">
<div class="col-xs-12 col-sm-9 col-md-10 col-lg-10 windows_plane"></div>
Answer the question
In order to leave comments, you need to log in
Invalid code basically cannot exist on the rendered page. When you try to insert an invalid piece, it will in any case be corrected to the best of your ability by the browser itself, if the template engine / js does not correct it itself.
Presumably here the closing tag is affixed somewhere below automatically. Accordingly, it is required to pull out that part of the tree that wraps around this div and insert it into this very div.
Alternatively, you can go a simpler way and try using the document.write() construct - as far as I understand, it does not do validation.
Otherwise, the most correct way is to debug and fix it :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question