jQuery: How to replace string, div content and image src?
In this article, I will be showing you how you can replace string, div content, and image src value with jQuery. You can do this by replace() function in jQuery. View Demo || Download Code Here is the code to replace string. This will replace the ‘smile’ text with ‘be happy’. var oldText = "Save … Read more