However, if you simply wrap the "this" keyword with $(), it magically somehow becomes a jQuery object, and you can use all the regular jQuery functions on it like .text() and .val()
$(".currency").each(function() {
$(this).text(formatCurrency($(this).text()));
});
0 comments:
Post a Comment