Hi! I have two function. But I want use two function in onKeyPress txtName. How I can this method?
First Function:
function SetFirstCapital() {
var oldString = document.getElementById('txtRussianValue').value;
var titleCase = oldString.replace(/([a-z])([A-Z])/g, function (allMatches, firstMatch, secondMatch) {
return firstMatch + " " + secondMatch;
}).toLowerCase().replace(/([ -_]|^)(.)/g, function (allMatches, firstMatch, secondMatch) {
return (firstMatch ? " " : "") + secondMatch.toUpperCase();
});
alert(titleCase);
}
Second Function:
function Next() {
if (event.keyCode == 13) {
var id1 = document.getElementById('Nome');
id1.focus();
}
}