Answer the question
In order to leave comments, you need to log in
How to modify the function condition?
There is a script that outputs a block with the class name rsya after the 3rd h2 subheading:
<script>
$(function(){
var insert_after = 3;
var n = parseInt($(".box_in h2").length);
if (n >= insert_after){
$($(".box_in h2")[insert_after]).after($(".rsya"));
};
});
</script>
Answer the question
In order to leave comments, you need to log in
As suggested in the comments: move the inputs themselves to the beginning of the general wrapper and change the selectors a bit:
And in the future, please post all the code in the sandbox.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question