- Posts: 7
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
$(document).ready(function() { // Fix the asterisk placement $.fn.tagName = function() { return this.get(0).tagName; } $('span.asterisk').each(function(i){ if($(this).next().length > 0 && $(this).next().tagName().toLowerCase() == 'p') { $(this).prependTo($(this).next()); } }); });
p span.asterisk { margin-right: 0.3em; }
Why not with float:left css ?tpartner wrote: I use a JavaScript workaround like ....