Hello good friends :)
I have a question about jquery. Is there a function in jquery to replace the many words that have been mapped within an object or array.
Example in php:
<?php
$textBefore = "PHP is amazing open source programmer language,
there many webs around the world that are built using php";
$forReplace = array("amazing","programmer","webs");
$replacement = array("powerfull","programming","websites");
$textAfter = str_replace( $forReplace , $replacement , $textBefore);
echo $textAfter;
?>
it will be produce
PHP is powerfull open source programming language,
there many websites around the world that are built using php
How do I do a similar thing in jquery? I did this to reduce the performance of the server so I thought to do this work by the browser. Because the contents fr replace in one show page is too much.
Thanks in advance.