Replace string using jQuery

  JQUERY   Monday, June 22, 2015   2756 | No Comments Yet!!! | No Download | No Demo | Pawan kumar
 Tags: Replace string using jQuery  Replace string  Replace string using jQuery tutorial 

In this tutorial we are going to learn to replace string using jquery so for this simple create a HTML page with the following codes.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
    <script src="" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".element span,p").text(function (index, text) {
                return text.replace('Hello', 'SourceCodehub');

    <div class="element">

so In this tutorial we have learn to replace string using jquery. Happy Coding!!!!

Post Comments

if you have some suggestion, question, request on Replace string using jQuery.

Please use the comment box to express your views.