this is a test. this is one more test. and this also new test.
This is test. This is one more test. And this is new test.
This is test. This is one more test. And this is new test.
You don't need jQuery for this. You can use Javascript string
and array
functions.
.
, to separate different sentences.
var str = 'this is a test. this is one more test. and this also new test.';
var newStr = str.split('.').map(function(el) {
el = el.trim();
return el.substr(0, 1).toUpperCase() + el.substr(1);
}).join('. ');
alert(newStr.trim());