For example, I'm using the following function:
$('body').html( function(i,html) {
var arr = html.split(". ");
arr[arr.length-1]="<span class='findme' >"+arr[arr.length-1]+"</span> ";
alert(arr)
return arr.join(". ");
});
The problem is it moves the cursor away from where the user was typing. Has anyone else seen this?