I have the following HTML structure:
This is what it looks like after some nice (and dirty) jQuerying, to tidy up the HTML:
Serie 1000
Model 1010
Model 1020
Model 1030
Model 1040
Model 1050
Serie 2000
Model 2010
Serie 3000
Model 3010
Serie 4000
Model 4010
Model 4020
Model 4030
Model 4040
In other words, all the other a
elements disappear?
Then I run this jQuery script:
$('#subgr-productlist h3').each(function(){
$(this).nextUntil('h3').wrapAll('');
});
But that results in the #subgr-productlist div
to render like this: