SyntaxFix
Write A Post
Hire A Developer
Questions
Try this. It uses the split function which is a core part of javascript, nothing to do with jQuery.
split
var parts = html.split(":-"), i, l ; for (i = 0, l = parts.length; i < l; i += 2) { $("#" + parts[i]).text(parts[i + 1]); }