I use the below code for replacing all instances of a character with another:
$("#myContent").each(function () {
$(this).html($(this).html().replace("1", "一"));
})
$("#myContent").each(function () {
$(this).html($(this).html().replace("2", "二"));
})
$("#myContent").each(function () {
$(this).html($(this).html().replace("3", "三"));
})
...
How can I put all these together, something like replacing an array with another?
eachfor one selected element?