Consider the following scenario:
HTML
<input type="text" id="source" value="the quick brown fox">
<input type="text" id="target">
CSS
#source
{
text-transform: capitalize;
}
JavaScript
function element(id) {
return document.getElementById(id);
}
element('target').value = element('source').value;
After CSS styling, #source should display “The Quick Brown Fox”.
The objective is to get the text-transform-ed value and dump it into #target. Is this possible to achieve?
No. You need to use JavaScript to transform it physically
Assuming you already know that source is text-transformed to capitalize, you can do