I have a string like
This is great day, tomorrow is a better day, the day after is a better day, the day after the day after that is the greatest day
Click | the |button |to |display| the| array| values| after| the| split. $(document).ready(function () { var str = $("#errorMessage").text(); document.getElementById("errorMessage").innerHTML=str.split("|").join(" "); }
Click | the |button |to |display| the| array| values| after| the| split.