You do not need jQuery for this.
First get the HTML code of the element (if you have only one of them, use jQuery.each otherwise):
var p = document.getElementsByTagName('p')[0]; var str = p.innerHTML;
Then, if you want to delete "Hello" exactly, do the following:
str = str.substring(7);
If you want everything after using a coma:
str = str.split(',', 2)[1];
And set its HTML back:
p.innerHTML = str;
source share