¡@

Home 

2014/10/16 ¤W¤È 12:09:22

jquery Programming Glossary: thepagel

Find and Replace more than 1 word?

http://stackoverflow.com/questions/9910819/find-and-replace-more-than-1-word

to change a bunch of different words on a page using jQuery. This is the code I have so far function var thePage body thePage.html thePage.html .replace My Classes g 'My Levels' jQuery How do I modify this code so I can find and replace more words Lets.. bunch of different words on a page using jQuery. This is the code I have so far function var thePage body thePage.html thePage.html .replace My Classes g 'My Levels' jQuery How do I modify this code so I can find and replace more words Lets say I also.. boy with girl . jquery share improve this question What you could do is if you chain the replace values such as thePage.html thePage.html .replace My Classes g 'My Levels' .replace dog g 'cat' .replace bird g 'pen' EDIT Here is the updated code..