I’m wondering if it is possible to insert something like the following with jquery
$("#main_header").replaceWith("<div class='header_small'><div class='citation'>
//and here should come for example a module position <jdoc:include type="modules" name="right" style="css-teske" headerLevel="3" />
</div></div>");
thanks for every suggestion
jQuery is loaded client-side; Joomla tags are parsed server-side. So, no, you can’t use jQuery to change Joomla tags.
However, you CAN use jQuery to set the container div to
display:noneor something like that.