SyntaxFix
Write A Post
Hire A Developer
Questions
Use split and join method
$("#idBut").click(function() { $("body").children().each(function() { $(this).html($(this).html().split('@').join("$")); }); });
here is solution