SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe not as clean or efficient as the already posted solutions, but how about the .each() function? E.g:
var mvar = ""; $(".mbox").each(function() { console.log($(this).html()); mvar += $(this).html(); }); console.log(mvar);