I want to insert a break element <br /> after a label <label> by using mootools. Unfortunatly this line of code don’t work:
$$('.class-name label').inject('<br />', 'after');
Should I create the element <br /> first with mootools? Thanks for reply.
this is not a valid element constructor
"<br />"and inject works reversed –newel.inject(target, where). you wantgrabif performance matters (IE and many many items)…
or even – to avoid the mootools el constructor penalty, I’d personally go with the following:
to be honest, you should solve this in CSS first if possible.