I\'m trying to do a string replace in a textarea after the user has entered their content and nothing I\'ve tried is working. Any help would be greatly appreciated. This is wher
jsfiddle
$("#field_id_29").bind("change keyup input",function(){ this.value= this.value.replace(/www-source/g,"www"); });
Note: inside function this is reference of textarea so you directly use this.value instead of accessing textarea value using id.